fix(ui): use const for wsProtocol, lint

This commit is contained in:
psychedelicious 2023-08-02 00:08:34 +10:00
parent 242d860a47
commit 4599575e65

View File

@ -12,8 +12,8 @@ import { socketSubscribed, socketUnsubscribed } from './actions';
export const socketMiddleware = () => {
let areListenersSet = false;
let wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
const wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
let socketUrl = `${wsProtocol}://${window.location.host}`;
const socketOptions: Parameters<typeof io>[0] = {