djangofloor.wsgi.wsgi_server

Structure of the redis database, with prefix = settings.WEBSOCKET_REDIS_PREFIX:

  • pubsub topics “{prefix}{topic}” where topic-key is given by the user-defined function
  • HSET “{prefix}topics-{window-key}” to list of topics with EXPIRE
class djangofloor.wsgi.wsgi_server.WebsocketWSGIServer(redis_connection=None)[source]
assure_protocol_requirements(environ)[source]
default_response()[source]
flush_websocket(websocket)[source]
get_ws_file_descriptor(websocket)[source]
static process_request(request)[source]
static process_subscriptions(request)[source]
process_websocket(window_info, websocket, channels)[source]
static publish_message(window_info, message)[source]
select(rlist, wlist, xlist, timeout=None)[source]
upgrade_websocket(environ, start_response)[source]
ws_receive_bytes(websocket)[source]
ws_send_bytes(websocket, message)[source]
djangofloor.wsgi.wsgi_server.get_websocket_topics(request)[source]