vapor / websocket-kit

WebSocket client library built on SwiftNIO

Home Page:https://docs.vapor.codes/4.0/advanced/websockets/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong default wss:// port

sehoffmann opened this issue · comments

Without any additional port specification, a secure websocket connection is supposed to run over port 443. Websocket-kit currently falls back to port 80 when the URI has no port component, even when the protocol is wss://.

This results in connects failing when an API provider just specifies wss://abc.foo/endpoint as address without additional port information.