Skip to content

[Question] examples/chat seems not working well #966

@waro163

Description

@waro163

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

  1. cd examples/chat
  2. go run *.go
  3. open the chrome, open "http://localhost:8080/"
  4. input some message in form, click "send" button
  5. Connection closed.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions