Add server WebSocket functionalities.