socket.io: Delete ignored resource option

I couldn't find any reference to a `resource` option in either the
socket.io-client documentation or its source code.
This commit is contained in:
Richard Hansen 2020-12-10 13:49:22 -05:00
parent 7949219179
commit 7eb0f996c3
4 changed files with 3 additions and 10 deletions

View file

@ -56,11 +56,9 @@ const init = () => {
const port = loc.port === '' ? (loc.protocol === 'https:' ? 443 : 80) : loc.port;
// create the url
const url = `${loc.protocol}//${loc.hostname}:${port}/`;
// find out in which subfolder we are
const resource = `${exports.baseURL.substring(1)}socket.io`;
// build up the socket io connection
socket = io.connect(url, {path: `${exports.baseURL}socket.io`, resource});
socket = io.connect(url, {path: `${exports.baseURL}socket.io`});
// send the ready message once we're connected
socket.on('connect', () => {