Posts

Showing posts with the label draft 76

WebSocket Handshake 76 Simplified

update there was a superfluous CR+LN with char 0x00 that was causing buffer troubles, now fixed I am working during my free time (... recently extremely hard to have ...) over a little project that I'd like to show at the Front Trends event this October and WebSocket is the key of this project. While 2 days ago I eventually found a way to communicate in few lines of php with a WebSocket, yesterday Chromium blog announced they " simply changed it ", causing basically problems to all those projects based over the good old handshake75. After I have found in Axod's Hack that somebody else had basically my same thoughts, I still could not find any valid example able to do the new handshake ... so here I am with the first draft-ietf-hybi-thewebsocketprotocol-00 php implementation I know, inspired somehow from the go version . <?php class WebSocketHandshake { /*! Easy way to handshake a WebSocket via draft-ietf-hybi-thewebsocketprotocol-00 * @link http://w...