Push pour hugo avec quelques ajouts de fichiers

This commit is contained in:
batche
2022-12-28 16:17:14 +01:00
parent 3e37a16d8c
commit 9d4903fd1e
5 changed files with 57 additions and 55 deletions

View File

@@ -17,9 +17,11 @@
*/
import { onMount } from 'svelte';
import io from 'socket.io-client';
const socket = io('http://transcendance:8080', {
path : '/chat',
});
const socket = io('http://transcendance:8080',{
query: {
path: '/chat',
}
});
onMount(async => {
socket.on('connect', function(){
console.log("socket.io connected");