Remove serverEndpoint completely and fix upload path (#434)

This commit is contained in:
Alex 2022-08-07 08:12:31 -05:00 committed by GitHub
parent b45024a97e
commit 953d18e795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 2 additions and 11 deletions

View file

@ -1,12 +1,9 @@
import { Socket, io } from 'socket.io-client';
import { writable } from 'svelte/store';
import { serverEndpoint } from '../constants';
let websocket: Socket;
export const openWebsocketConnection = () => {
const websocketEndpoint = serverEndpoint.replace('/api', '');
try {
websocket = io('', {
path: '/api/socket.io',