blob: 04458fb92bee66bf2ff6330d9c69c0983142a5df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//! [0]
socket.connectToServer("market")
if (socket.waitForConnected(1000))
print("Connected!")
//! [0]
//! [1]
socket.disconnectFromServer()
if (socket.waitForDisconnected(1000))
print("Disconnected!")
//! [1]
|