wip trying to connect socket

This commit is contained in:
simplonco
2022-12-28 16:20:07 +01:00
parent ead4a1c264
commit b6203fc7b1
8 changed files with 106 additions and 70 deletions

View File

@@ -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");