Tiny WebSocket implementation