Error when connecting to JSONRPC-API WebSocket on port 9090

I get an error when I try to set up a WebSocket connection on port 9090. I guess it's not running? How do I enable it?

 

I don't know the code of RasPlex/Plex very well but it looks like it has something to do with the EventServer (services.esenabled) being enabled?

https://github.com/RasPlex/plex-home-theatre/blob/rasplex-dev/xbmc/Application.cpp @ line 1852:

if (g_guiSettings.GetBool("services.esenabled"))
  {
    if (CTCPServer::StartServer(g_advancedSettings.m_jsonTcpPort, g_guiSettings.GetBool("services.esallinterfaces")))
    {
      std::vector<std::pair > txt;
      CZeroconf::GetInstance()->PublishService("servers.jsonrpc-tpc", "_xbmc-jsonrpc._tcp", g_infoManager.GetLabel(SYSTEM_FRIENDLY_NAME), g_advancedSettings.m_jsonTcpPort, txt);
      return true;
    }

 

It works with Plex HT official release...

I don't know the answer but I'm curious to know what you are trying to do ?

I don't know the answer but I'm curious to know what you are trying to do ?

I'm building a remote app. I need the jsonrpc-api available on the client and not the Plex server.

I'm staring to think it's the missing of Access-Control-Allow-Origin * in the XBMC code that is the problem? Can anyone confirm this?

​It means that you can only connect to the api from localhost...