fix suggested by

Dean Mumby
This commit is contained in:
AndzejsP 2023-06-02 12:35:40 +03:00
parent 2ad9761405
commit 33b6125d72

View File

@ -6,9 +6,9 @@
import { createApp } from 'vue';
import io from 'socket.io-client';
// fixes issues when people not hosting this site on local network
const URL = process.env.NODE_ENV === "production" ? undefined : (import.meta.env.VITE_GPT4ALL_API);
const socket = new io(URL);
//const socket = new io(import.meta.env.VITE_GPT4ALL_API );
socket.onopen = () => {
console.log('WebSocket connection established.');