set callback to be invoked when the Websocket connection is open.
virtual void onOpen(std::function<void()> callback) = 0
callback: