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
// Polo ClientPoloClient client =awaitPolo.connect("ws://127.0.0.1:3000/");
client.onConnect(() {
print("Client Connected to Server");
});
client.onDisconnect(() {
print("Client Disconnected from Server");
});
client.onEvent<String>('message', (message) {
print("$message");
});
client.listen();
Client Code (TypeScript)
// Polo Clientconstclient: PoloClient=awaitPolo.connect("ws://127.0.0.1:3000/");client.onConnect(()=>{console.log("Client Connected to Server");});client.onDisconnect(()=>{console.log("Client Disconnected from Server");});client.onEvent<string>("message",(message)=>{console.log(`${message}`);});client.listen();