// 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();