diff --git a/protocol.go b/protocol.go index 0078d7e3..dbf52bb2 100644 --- a/protocol.go +++ b/protocol.go @@ -29,7 +29,7 @@ var validChannelNameRegex = regexp.MustCompile(`^[\.a-zA-Z0-9_-]+(#ephemeral)?$` // IsValidTopicName checks a topic name for correctness func IsValidTopicName(name string) bool { - if len(name) > 32 || len(name) < 1 { + if len(name) > 64 || len(name) < 1 { return false } return validTopicNameRegex.MatchString(name) @@ -37,7 +37,7 @@ func IsValidTopicName(name string) bool { // IsValidChannelName checks a channel name for correctness func IsValidChannelName(name string) bool { - if len(name) > 32 || len(name) < 1 { + if len(name) > 64 || len(name) < 1 { return false } return validChannelNameRegex.MatchString(name)