WebSocket base for Ruby client and server