connect

open suspend override fun connect(peer: Endpoint): Connection(source)

Throws

for anything but an Endpoint.WebSocket, and for a wss one when schemes leaves out coaps+ws; nothing is sent then.

when the handshake completes without the subprotocol coap. Where the WebSocket itself fails such a handshake, as browsers and the npm ws client do, the engine's own exception comes instead.