kopia lustrzana https://github.com/cirospaciari/socketify.py
add clarification
rodzic
2b7d320fe7
commit
d7874a495d
|
@ -71,6 +71,8 @@ You should use the provided user data feature to store and attach any per-socket
|
||||||
|
|
||||||
If you want to create something more elaborate you could have the user data hold a pointer to some dynamically allocated memory block that keeps a boolean whether the WebSocket is still valid or not. Sky is the limit here.
|
If you want to create something more elaborate you could have the user data hold a pointer to some dynamically allocated memory block that keeps a boolean whether the WebSocket is still valid or not. Sky is the limit here.
|
||||||
|
|
||||||
|
In order to do so, use the `upgrade` callback configuration in the `app.ws` settings.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```python
|
```python
|
||||||
from socketify import App, WebSocket, OpCode
|
from socketify import App, WebSocket, OpCode
|
||||||
|
|
Ładowanie…
Reference in New Issue