Websocket with https site

I am using WebSocket for my application.

It is working fine when I run the server on IP address / HTTP URL

but now we set up our project on the HTTPS URL. Now WebSocket is not working.

What configurations I have to do (and in which file) to resolve this.

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @bhargav.vaghasiya

    The Elektron WebSocket API is based on the WebSocket standard specification. It supports both the standard WebSocket "ws" and WebSocket Secure "wss" protocols such as following:

    • basic connection: "ws://TREP:15000/WebSocket"
    • secure connection: "wss://your_TREP:443/WebSocket"

Answers