Skip to content

Added User-Agent header and code to dynamically generate new Sec-WebSocket-Key and verify Sec-WebSocket-Accept - #2

Open
zhiyong-ft wants to merge 7 commits into
janjongboom:masterfrom
zhiyong-ft:master
Open

Added User-Agent header and code to dynamically generate new Sec-WebSocket-Key and verify Sec-WebSocket-Accept#2
zhiyong-ft wants to merge 7 commits into
janjongboom:masterfrom
zhiyong-ft:master

Conversation

@zhiyong-ft

Copy link
Copy Markdown

Per discussion on StackOverflow, Sec-WebSocket-Key better be random and different for each new connection, that is how Sec-WebSocket-Key is implemented in mainstream WS client such as lws.

Also added is User-Agent header. It is customary and can also be useful to report this to server.

Hope these two features will make this library one step closer to be production ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant