Chat using API WebSocket JavaEE 7