Socket connection to LG TV

Can someone explain me why I’m getting error code 1008 (invalid origin) when I try to connect to the TV socket on port 3000 so that I can use the ssap://com.webos.applicationManager/listLaunchPoints call?

I’m trying to develop an app to show all my video streams, especially xfinity stream and I’m trying to obtain the app id’s so that I can launch them.

websocket = new WebSocket(“ws://”).
websocket.onopen = function(evt) {
websocket.onclose = function(evt) {
alert("close " + evt.code + " " + evt.reason);

We do not guarantee the compatibility of webOS TV apps with webOS OSE APIs. For webOS TV apps, please use webOS TV APIs in References only. Thank you.

Thanks. In my use case, I don’t care about capability. I just went through the references… there doesn’t seem to be any reference call to allow me to get the list of installed apps so that I could get the links to their icons and app id. Is that correct? I’m trying to build a list of all the streaming services (netflix, hulu, etc.) together on one screen.

Currently, no APIs to list all the installed apps are provided. Basically, the webOS TV does not provide 3rd party apps’ information. Sorry for not being helpful.