Simple WebSocket implementation in Java