of

fun of(host: String, port: Int, usesTls: Boolean = false): Endpoint.WebSocket(source)

The WebSocket endpoint of a coap+ws or coaps+ws URI's authority: ws://host:port or wss://host:port with the path /.well-known/coap (RFC 8323 §8.3, §8.4). An IPv6 literal is bracketed once (RFC 3986 §3.2.2), whether host is given with brackets or without, as Tcp takes it.