Blitz WebSocket Handshake

BlitzMax Forums/BlitzMax Programming/Blitz WebSocket Handshake

Spacechimp(Posted 2011) [#1]
I am writing a server in blitzmax that can handle WebSocket traffic.

I am having trouble with the security handshake. I have gotten pretty far but need a little help. I don't think the security key response I generate is correct. So if anyone is feeling charitable...


General Info On WebSockets.

The handshake specification will change, but for right now chrome is using this spec: draft-ietf-hybi-thewebsocketprotocol-00

The abstract for processing the security handshake is on page 8. I am unsure about the Big Endian comment. Also, I am not sure if I am handling the 3rd Ascii key thing right.

My functions that process the security response:



Examples of what I am receiving from my web client and what my blitz program is outputting
(not sure if all ascii will show on forum. Also, excuse other forum formatting issues)




Thanks!

Last edited 2011