File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -76,3 +76,14 @@ class YourController(Controller):
7676 }
7777 broadcast.channel([" channel-name" ], " event-name" , broadcast_data)
7878```
79+
80+ ** Helpers**
81+
82+ List all connected clients:
83+
84+ ``` python
85+ from socketio_driver.facades import Communicator
86+
87+ communicator.clients() # get list of connected clients
88+ communicator.client(id = ' client-id' ) # get client by id, id is basically a socket.io session id
89+ ```
Original file line number Diff line number Diff line change 55
66setup (
77 name = "masonite-socketio-driver" ,
8- version = '2.0.5 ' ,
8+ version = '2.0.6 ' ,
99 packages = [
1010 "socketio_driver" ,
11+ "socketio_driver.models" ,
1112 "socketio_driver.config" ,
1213 "socketio_driver.drivers" ,
1314 "socketio_driver.providers"
2930 # 3 - Alpha
3031 # 4 - Beta
3132 # 5 - Production/Stable
32- "Development Status :: 3 - Alpha " ,
33+ "Development Status :: 5 - Production/Stable " ,
3334 # Indicate who your project is intended for
3435 "Intended Audience :: Developers" ,
3536 "Environment :: Web Environment" ,
You can’t perform that action at this time.
0 commit comments