You need to sign in to do that
Don't have an account?
Suraj P
Is the use of WebSockets supported in Lightning Components?
I am trying to build a CTI adapter. But I keep getting the error: "Failed to construct 'WebSocket': Please use the 'new' operator, this DOM object constructor cannot be called as a function.". Is this a know limitation?
But unfortunately your WebSockets can't connect to services outside Salesforce due CSP.
For this you should have added a CSP rule in setup. But actually SF only allows http and https protocols as CSP url value.
You can vote for this:
https://success.salesforce.com/ideaView?id=0873A000000E5nmQAC
We need some more votes for this!
To build a WebSocket just code: