Template for websocket