WebSocket wrapper to add socket.io-like functionality around native WebSockets or polyfills.