Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
wbfsm / wbfsm / consumers.py
Size: Mime:
from channels.generic.websocket import JsonWebsocketConsumer

class BroadcastConsumer(JsonWebsocketConsumer):
    groups = ["wbfsm-broadcast"]

    def broadcast_state_change(self, content):
        self.send_json(content=content['content'])