Allow numeric topics
Not part of the spec but to prevent a BC break
This commit is contained in:
parent
309564cbf1
commit
d52de66ab0
@ -93,7 +93,7 @@ class ServerProtocol implements MessageComponentInterface, WsServerInterface {
|
||||
throw new Exception("Invalid WAMP message format");
|
||||
}
|
||||
|
||||
if (isset($json[1]) && !is_string($json[1])) {
|
||||
if (isset($json[1]) && !(is_string($json[1]) || is_numeric($json[1]))) {
|
||||
throw new Exception('Invalid Topic, must be a string');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user