Browse Source

tiny correction

Falko Schindler 2 years ago
parent
commit
f0ccc85c03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nicegui/client.py

+ 1 - 1
nicegui/client.py

@@ -112,7 +112,7 @@ class Client:
         """Execute JavaScript on the client.
         """Execute JavaScript on the client.
 
 
         The client connection must be established before this method is called.
         The client connection must be established before this method is called.
-        You can do this by `await client.connected()` or register a callback with `client.on_connected(...)`.
+        You can do this by `await client.connected()` or register a callback with `client.on_connect(...)`.
         If respond is True, the javascript code must return a string.
         If respond is True, the javascript code must return a string.
         """
         """
         request_id = str(uuid.uuid4())
         request_id = str(uuid.uuid4())