Hi, what is the difference between `<http://httpcl...
# ktor
b
Hi, what is the difference between
<http://httpclient.ws|httpclient.ws>()
and
httpclient.websocket()?
a
The
ws
and
wss
methods are used to create a websocket session with a different initial configuration. They call the
websocket
method under the hood.
b
Why is
wss()
default port on
80
instead of
443
?
a
According to the following code, the port is 443:
Copy code
{
    url.protocol = URLProtocol.WSS
    url.port = url.protocol.defaultPort
    request()
},
block = block
Since
WSS
defined as
URLProtocol("wss", 443)
1