defining the URI for websocket

can we use URI as like this : wss://xxxxx-xxxxx.xxxx.com/websocket

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    @chathuranga.venusit The websocket URL is of format: ws:/hostname:port/WebSocket. (Note the case in WebSocket)

    If the port is not specified, wss will try to connect to default SSL port 443 - which is not the usual listening port for websocket service.