I know I probably demand too much from esp8266, but is it possible to send messages via WebSocket to the client while device is connecting to wifi?
forceWiFiRegisterBegin