wip trying to connect socket
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
*/
|
||||
import { onMount } from 'svelte';
|
||||
import io from 'socket.io-client';
|
||||
const socket = io('http://transcendance:8080/api/v2');
|
||||
const socket = io('http://transcendance:8080/chat', {
|
||||
path: '/chat/socket.io'
|
||||
});
|
||||
onMount(async => {
|
||||
socket.on('connect', () => {
|
||||
console.log("client connection");
|
||||
|
||||
Reference in New Issue
Block a user