-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I am new to WebSocket and Swift, and there is a high chance that I am wrong.
I communicate with a WebSocket server that randomly sends ping as an Opcode frame to the client and expects a pong. The connection is closed immediately because the incoming ping is incorrectly handled as an unknown message. After all, the incoming Opcode has context but no data and no error; therefore, it lands in the handleUknownMessage method followed by connection close.
The following temporarily solved my problem, but I doubt it's the correct way to do it. It might help somebody to do it the right way.
Necessary update on the WebSocketMessage:
Metadata
Metadata
Assignees
Labels
No labels


