#Is there a guide or any resource for WebSocket client protocol?
15 messages · Page 1 of 1 (latest)
You can review the source and documentation of this: https://github.com/gorilla/websocket
It's the gold-standard client & server impl, almost everyone using websockets in Go uses this library
Too complicated, they seem to share Conn struct for both server and client
I'm not sure what you want
The structure is a little too complicated
What is your goal
I want to implement just the client protocol
From scratch?
Yeah
Any particular reason or you just want to learn about it?
Just for learning
I got connection working, but I don't understand the reading messages part, the spec is unnecessarily complicated
Then your best resources are going to be spec and source. I don't think the relevant parts of gorilla/websocket are as complex as you're making out. Is there anything in particular you're struggling with? Because not liking the way it's structured doesn't mean you can't learn from it
I have setup a TCP connection, but I cannot understand the message parsing stuff