Push pour hugo avec quelques ajouts de fichiers
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user