Using socket.io with manifest version 5

var socket = io.connect('https://electronserver.com:3443', {
    query: {
      "name": "plugin-helloworld"
    }
  });

I was using version 4 in my manifest.json before and the connection with my electron app is ok without any error. But then i try to change to version 5, the connection just stop without return any error.
Now i don’t know how to handle this. Please help.

image
I found out this is the error when i try to connect

You might need to add network permissions to the manifest file.

1 Like

Something like this?

"requiredPermissions": {
    "network": {
      "domains": [
        "https://electronserver.com:3443"
      ]
    }
  },

OK so seem like i cannot specify the domain to my electron server, but if i set it to “all” then it work fine

"requiredPermissions": {
    "localFileSystem": "fullAccess",
    "network": {
      "domains": "all"
    }
  }

@BillCipher Which PS version and OS are you running the plugin on? The https domain should have worked.

I am using window 10 at the moment, and even with remove the port it still didnt work

“domains”: [
https://electronserver.com:3443
]

Doesn’t this solve the problem?

No, this does’t work for me when i use it. Maybe the socket.io need more than just the server domain, just an assumption.