Websocket :close 1006 (abnormal closure)

I have been trying to learn WebSockets, But my WebSocket connection is not working properly i guess,
the client gets connected but gets immediately disconnected due to this error.

websocket: close 1006 (abnormal closure): unexpected EOF

Heres my main.go

Help me with this error, please.

Please don’t include code as screenshots. Include the relevant parts of your code as code.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.