pass options to websocket constructor