modes: add flag for websocket client being handshaked