WebSocket open-source project

I created a WebSocket class and posted it here if anyone is interested. It’s not feature complete, but it does successfully negotiate, validate, send, and receive. It even handles pings and pongs.

It does not yet act as a server, only a client, but you’d use it (mostly) as you would an SSLSocket.

WebSocket1.Connect( someUrl )
//
// Once connected …
//
WebSocket1.Write someTextOrBinaryData

It also has facilities to specify protocols (if you need that) and add headers during negotiation. You can even specify the content limit to control how the messages are split up when sent.

I just released v.0.6.0 that includes proper handling of partial data packets and multiple frames within a data packet. (Thanks, @Greg O’Lone ).