App
Event based app for websocket communication.
This is app that uses Framework. If not events handled by developer. this app works like demo(echo) app. This is a WSGI web app. So you can use any WSGI Server to host this app
You should use HTTP version 1.1
Server with your WSGI framework for some clients like Firefox browser.
for more info on client
see :-
WSocketApp
app
should be a valid WSGI web application.
protocol
is websocket sub protocol to accept (ex: WAMP)
Class variables
GUID
- unique ID to generate websocket accept key
SUPPORTED_VERSIONS
- 13, 8 or 7
websocket_class
- "wsgi.websocket"
in WSGI Environ
Events
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.
Last updated
Was this helpful?