Open yeganemehr opened 1 year ago
Hi When using a custom websocket protocol and SimpleParser, if there is no event, there will be an fatal error about passing null to Websocket::on(string $event, $callback). This PR fix the problem and prevent calling on() method.
SimpleParser
event
Websocket::on(string $event, $callback)
on()
Hi When using a custom websocket protocol and
SimpleParser
, if there is noevent
, there will be an fatal error about passing null toWebsocket::on(string $event, $callback)
. This PR fix the problem and prevent callingon()
method.