App
Event based app for websocket communication.
Last updated
Was this helpful?
Event based app for websocket communication.
Last updated
Was this helpful?
This is app that uses . If not events handled by developer. this app works like demo(echo) app. This is a web app. So you can use any Server to host this app
GUID
- unique ID to generate websocket accept key
SUPPORTED_VERSIONS
- 13, 8 or 7
websocket_class
- "wsgi.websocket"
in WSGI Environ
onconnect
- fires when client sent a message
onmessage
- fires when client sent a message onmessage
- fires when client sent a message
you can attach event handler method to event using
+=
operator
+
operator
=
operator
You can't add new handlers to Event after =
operator used. It replaces Event. But you can replace it again using another handler.
app
should be a valid web application.
protocol
is websocket sub protocol to accept (ex: )