We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bbd903 commit 53c84e3Copy full SHA for 53c84e3
examples/quickstart/client/main.py
@@ -1,7 +1,3 @@
1
-import sys
2
-
3
-sys.path.insert(0, "../../../src")
4
5
import asyncio
6
from multiprocessing import Queue
7
import threading
@@ -24,7 +20,7 @@ def run_client(spacetime_client):
24
20
spacetime_client.run(
25
21
local_config.get_string("auth_token"),
26
22
"localhost:3000",
27
- "chat3",
23
+ "chat",
28
False,
29
on_connect,
30
["SELECT * FROM User", "SELECT * FROM Message"],
@@ -39,7 +35,7 @@ def input_loop():
39
35
user_input = input()
40
36
if len(user_input) == 0:
41
37
return
42
- if user_input.startswith("/name "):
38
+ elif user_input.startswith("/name "):
43
input_queue.put(("name", user_input[6:]))
44
else:
45
input_queue.put(("message", user_input))
0 commit comments