Convergence: Ubiety plug-in and libwebsock
Recently, I put out the beginning of another chat plug-in for WordPress called ‘Ubiety‘ which favors WebSockets over the polling system of my AjaxChat plug-in. I don’t like polling over and over again for data. It’s ugly and inefficient. I’d much rather use WebSockets for at-will communication between the server and client. I implemented the simple chat plug-in using the Pusher service. While I prefer the method of communications, this method forces the user to sign-up for the Pusher service. I don’t like this either! I’d like for it be super simple to get going, efficient, and to scale well. Once I get these bases covered, I’ll start looking at the subtler aspects of the chat system and focus on features. In order to eschew Pusher, I began development on libwebsock. Can you tell I love to code? Libwebsock is a C library that handles framing and control messages for the WebSocket protocol providing simple callbacks to the C developer for easy production of WebSockets servers. Libwebsock is pretty much fully functional at the moment. It’s still very early on and needs a lot of work. Some aspects of libwebsock that still need work are:
- Initial Handshake
- Secure WebSockets support via OpenSSL
- Simpler control frame callback
- More error checking!