Is there a limit to the length of the ClientId or Channel name?

ClientId

There is no limit; however the clientId is counted as part of the size of the message and will contribute towards the total message size.

Channel name

See What restrictions are there on channel names