-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
when i run the example/chat code, it can NOT work as expect, when i open http://localhost:8080/ and send some message, it will show "Connection closed."
then i use Postman(https://www.postman.com/) to test WebSocket connecting, connect localhost:8080/ws
is good, but when i send some message to server, it will Disconnected, and get a error: Disconnected from localhost:8080/ws 1002 Protocol Error: RSV1 set, bad opcode 7, bad MASK
Expected Behavior
work good, and can run chat demo
Steps To Reproduce
- cd examples/chat
- go run *.go
- open the chrome, open "http://localhost:8080/"
- input some message in form, click "send" button
- Connection closed.
Anything else?
No response