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


See What is the maximum message size for more details on message size limits by account type.