allow pass websocket server instance when create websocket server