testing/transports/ws_raw_client.ts view source
(options: RawWsConnectOptions): Promise<RawWsClient> import {connect_raw_ws} from '@fuzdev/fuz_app/testing/transports/ws_raw_client.js'; Upgrade a raw TCP socket to a WebSocket.
Resolves once the server answers 101; rejects on any other status or a
connection error.
options
returns
Promise<RawWsClient>
throws
Error- when the upgrade is refused or the connection fails