WebSocket emulation - Erlang server