MCPcopy Index your code

hub / github.com/miguelgrinberg/Flask-SocketIO / functions

Functions171 in github.com/miguelgrinberg/Flask-SocketIO

↓ 70 callersMethodget_received
Return the list of messages received from the server. Since this is not a real client, any time the server emits an event, the event
src/flask_socketio/test_client.py:228
↓ 59 callersMethodtest_client
The Socket.IO test client is useful for testing a Flask-SocketIO server. It works in a similar way to the Flask Test Client, but adapt
src/flask_socketio/__init__.py:785
↓ 42 callersMethodemit
Emit a server generated SocketIO event. This function emits a SocketIO event to one or more connected clients. A JSON blob can be att
src/flask_socketio/__init__.py:425
↓ 35 callersFunctionemit
Emit a SocketIO event. This function emits a SocketIO event to one or more connected clients. A JSON blob can be attached to the event as pay
src/flask_socketio/__init__.py:877
↓ 17 callersFunctionsend
Send a SocketIO message. This function sends a simple SocketIO message to one or more connected clients. The message can be a string or a JSO
src/flask_socketio/__init__.py:984
↓ 17 callersMethodsend
Send a server-generated SocketIO message. This function sends a simple SocketIO message to one or more connected clients. The message
src/flask_socketio/__init__.py:524
↓ 15 callersMethodis_connected
Check if a namespace is connected. :param namespace: The namespace to check. The global namespace is assumed if this
src/flask_socketio/test_client.py:101
↓ 12 callersMethoddisconnect
Disconnect the client. :param namespace: The namespace to disconnect. The global namespace is assumed if this argume
src/flask_socketio/test_client.py:157
↓ 6 callersMethoddumps
(*args, **kwargs)
src/flask_socketio/__init__.py:239
↓ 5 callersMethodon
Decorator to register a SocketIO event handler. This decorator must be applied to SocketIO event handlers. Example:: @socketio.o
src/flask_socketio/__init__.py:272
↓ 4 callersMethod_handle_event
(self, handler, message, namespace, sid, *args)
src/flask_socketio/__init__.py:810
↓ 4 callersMethodinit_app
(self, app, **kwargs)
src/flask_socketio/__init__.py:205
↓ 4 callersFunctionjoin_room
Join a room. This function puts the user in a room, under the current namespace. The user and the namespace are obtained from the event conte
src/flask_socketio/__init__.py:1043
↓ 4 callersFunctionleave_room
Leave a room. This function removes the user from a room, under the current namespace. The user and the namespace are obtained from the event
src/flask_socketio/__init__.py:1069
↓ 4 callersFunctionrooms
Return a list of the rooms the client is in. This function returns all the rooms the client has entered, including its own room, assigned by
src/flask_socketio/__init__.py:1109
↓ 3 callersFunctiondisconnect
Disconnect the client. This function terminates the connection with the client. As a result of this call the client will receive a disconnect
src/flask_socketio/__init__.py:1126
↓ 3 callersMethodrun
Run the SocketIO web server. :param app: The Flask application instance. :param host: The hostname or IP address for the server to li
src/flask_socketio/__init__.py:577
↓ 3 callersMethodsleep
Sleep for the requested amount of time using the appropriate async model. This is a utility function that applications can use to put
src/flask_socketio/__init__.py:775
↓ 3 callersMethodstart_background_task
Start a background task using the appropriate async model. This is a utility function that applications can use to start a background
src/flask_socketio/__init__.py:758
↓ 2 callersFunctionclose_room
Close a room. This function removes any users that are in the given room and then deletes the room from the server. :param room: The nam
src/flask_socketio/__init__.py:1094
↓ 2 callersMethodclose_room
Close a room. This function removes any users that are in the given room and then deletes the room from the server. This function can
src/flask_socketio/__init__.py:564
↓ 2 callersMethodon_event
Register a SocketIO event handler. ``on_event`` is the non-decorator version of ``'on'``. Example:: def on_foo_event(js
src/flask_socketio/__init__.py:356
↓ 2 callersMethodon_namespace
(self, namespace_handler)
src/flask_socketio/__init__.py:416
↓ 1 callersMethod__init__
(self, app=None, **kwargs)
src/flask_socketio/__init__.py:185
↓ 1 callersMethod_set_socketio
(self, socketio)
src/flask_socketio/namespace.py:9
↓ 1 callersMethodcall
Emit a SocketIO event and wait for the response. This method issues an emit with a callback and waits for the callback to be invoked
src/flask_socketio/__init__.py:489
↓ 1 callersMethodconnect
Connect the client. :param namespace: The namespace for the client. If not provided, the client connects to the ser
src/flask_socketio/test_client.py:109
↓ 1 callersMethodemit
Emit an event to the server. :param event: The event name. :param *args: The event arguments. :param callback: ``True`` if th
src/flask_socketio/test_client.py:169
Method__call__
(self, environ, start_response)
src/flask_socketio/__init__.py:39
Method__init__
(self, id=None)
example/sessions.py:16
Method__init__
(self, socketio_app, flask_app, socketio_path='socket.io')
src/flask_socketio/__init__.py:34
Method__init__
(self, app, socketio, namespace=None, query_string=None, headers=None, auth=None, flask_test_
src/flask_socketio/test_client.py:29
Method__init__
(self, namespace=None)
src/flask_socketio/namespace.py:5
Method_callback_wrapper
(*args)
src/flask_socketio/__init__.py:476
Method_handler
(sid, *args)
src/flask_socketio/__init__.py:295
Method_mock_send_eio_packet
(eio_sid, eio_pkt)
src/flask_socketio/test_client.py:64
Method_mock_send_packet
(eio_sid, pkt)
src/flask_socketio/test_client.py:31
Functionbackground_task
()
test_socketio.py:50
Functionbackground_thread
Example of how to send server generated events to clients.
example/app_namespace.py:18
Functionbackground_thread
Example of how to send server generated events to clients.
example/app.py:19
Functioncall
Emit a SocketIO event and wait for the response. This function issues an emit with a callback and waits for the callback to be invoked by the
src/flask_socketio/__init__.py:938
Functioncan_disconnect
()
example/app.py:94
Functioncatch_all
(event, data)
test_socketio.py:112
Functioncatch_all
(event, data)
example/app.py:85
Methodclose_room
Close a room.
src/flask_socketio/namespace.py:51
Functionconnect
()
test_socketio.py:35
Functionconnect
()
example/app.py:112
Methoddecorator
(handler)
src/flask_socketio/__init__.py:293
Functiondisconnect_request
()
example/app.py:92
Methodemit
Emit a custom event to one or more connected clients.
src/flask_socketio/namespace.py:36
Functionerror_handler
(value)
test_socketio.py:196
Functionerror_handler_default
(value)
test_socketio.py:226
Functionerror_handler_namespace
(value)
test_socketio.py:211
Methodevent
Decorator to register an event handler. This is a simplified version of the ``on()`` method that takes the event name from the decora
src/flask_socketio/__init__.py:381
Functionget_request_event
(data)
test_socketio.py:96
Functionget_request_event2
(data)
test_socketio.py:102
Functionget_session
()
example/sessions.py:50
Functionindex
()
example/sessions.py:26
Functionindex
()
example/app_namespace.py:30
Functionindex
()
example/app.py:30
Functionjoin
(message)
example/app.py:50
Functionleave
(message)
example/app.py:59
Functionload_user
(id)
example/sessions.py:21
Methodloads
(*args, **kwargs)
src/flask_socketio/__init__.py:244
Functionmessage
(message)
test_socketio.py:57
Functionmy_broadcast_event
(message)
example/app.py:42
Functionmy_event
(message)
example/app.py:35
Functionmy_ping
()
example/app.py:107
Functionmy_room_event
(message)
example/app.py:77
Functionon_bad_callback
()
test_socketio.py:178
Functionon_bad_response
()
test_socketio.py:173
Functionon_bgtest_connect
()
test_socketio.py:49
Functionon_changing_response
()
test_socketio.py:183
Functionon_close_room
(message)
example/app.py:68
Methodon_close_room
(self, message)
example/app_namespace.py:60
Functionon_connect
(auth)
test_socketio.py:16
Methodon_connect
(self)
test_socketio.py:241
Methodon_connect
()
test_socketio.py:767
Methodon_connect
(self)
example/app_namespace.py:82
Functionon_custom_event
(data)
test_socketio.py:88
Functionon_custom_event_broadcast
(data)
test_socketio.py:130
Functionon_custom_event_broadcast_test
(data)
test_socketio.py:135
Functionon_custom_event_test
(data)
test_socketio.py:117
Functionon_custom_event_test2
(data)
test_socketio.py:121
Functionon_disconnect
(reason)
test_socketio.py:29
Methodon_disconnect
(self)
test_socketio.py:248
Methodon_disconnect
(self)
example/app_namespace.py:89
Methodon_disconnect_request
(self)
example/app_namespace.py:73
Functionon_disconnect_test
()
test_socketio.py:43
Methodon_error
Decorator to define a custom error handler for SocketIO events. This decorator can be applied to a function that acts as an error han
src/flask_socketio/__init__.py:316
Methodon_error_default
Decorator to define a default error handler for SocketIO events. This decorator can be applied to a function that acts as a default e
src/flask_socketio/__init__.py:340
Methodon_exit
(self, data)
test_socketio.py:264
Methodon_join
(self, message)
example/app_namespace.py:46
Functionon_join_room
(data)
test_socketio.py:141
Functionon_join_room_namespace
(data)
test_socketio.py:151
Functionon_json
(data)
test_socketio.py:71
Methodon_json
(self, data)
test_socketio.py:259
Functionon_json_test
(data)
test_socketio.py:83
Methodon_leave
(self, message)
example/app_namespace.py:53
Functionon_leave_room
(data)
test_socketio.py:146
next →1–100 of 171, ranked by callers