You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i used this library for listening to an specific event inside a channel here's my code snippet:
` try{
SocketIOManager manager = SocketIOManager();
SocketIO socket = await manager.createInstance(SocketOptions('http://127.0.0.1:3000',nameSpace: '/',enableLogging: true,path: null)); //TODO change the port accordingly
socket.onConnect((data){
print("connected...");
print(data);
}`
nothing showed in the log, and no data displayed with no error message.
my channel name is : 'test-channel'.
my event name is : 'Socket'
any solutions guys :'(
The text was updated successfully, but these errors were encountered:
i used this library for listening to an specific event inside a channel here's my code snippet:
` try{
SocketIOManager manager = SocketIOManager();
SocketIO socket = await manager.createInstance(SocketOptions('http://127.0.0.1:3000',nameSpace: '/',enableLogging: true,path: null)); //TODO change the port accordingly
socket.onConnect((data){
print("connected...");
print(data);
});
socket.on('test-channel', (data){ //sample event
});
socket.connect();
socket.on('Socket', (data) { print(data);});
}
catch(e){
}`
nothing showed in the log, and no data displayed with no error message.
my channel name is : 'test-channel'.
my event name is : 'Socket'
any solutions guys :'(
The text was updated successfully, but these errors were encountered: