pass websocket server in options