1234
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import socketio
|
||||
import time
|
||||
sio = socketio.Client()
|
||||
sio.connect(
|
||||
url = "http://localhost:5214",
|
||||
namespaces = ["/test"]
|
||||
)
|
||||
while True:
|
||||
sio.emit(
|
||||
event = "echo",
|
||||
data = {"k0": "v0", "k1": "v1"},
|
||||
namespace = "/test"
|
||||
)
|
||||
print("Emitted!")
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user