Build websocket server