template for websocket server