File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ functions must be defined using the ``on`` decorator::
4545
4646 @sio.on('connect')
4747 def on_connect():
48- print('I'm connected!')
48+ print('I\ 'm connected!')
4949
5050 @sio.on('message')
5151 def on_message(data):
@@ -57,7 +57,7 @@ functions must be defined using the ``on`` decorator::
5757
5858 @sio.on('disconnect')
5959 def on_disconnect():
60- print('I'm disconnected!')
60+ print('I\ 'm disconnected!')
6161
6262For the ``asyncio `` server, event handlers can be regular functions as above,
6363or can also be coroutines::
@@ -162,7 +162,7 @@ added to the ``on`` decorator::
162162
163163 @sio.on('connect', namespace='/chat')
164164 def on_connect():
165- print('I'm connected to the /chat namespace!')
165+ print('I\ 'm connected to the /chat namespace!')
166166
167167Likewise, the client can emit an event to the server on a namespace by
168168providing its in the ``emit() `` call::
You can’t perform that action at this time.
0 commit comments