Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Handling null event in websockets - #551

Open
yeganemehr wants to merge 1 commit into
swooletw:masterfrom
yeganemehr:master
Open

Handling null event in websockets#551
yeganemehr wants to merge 1 commit into
swooletw:masterfrom
yeganemehr:master

Conversation

@yeganemehr

Copy link
Copy Markdown

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant