Created
March 29, 2016 16:24
-
-
Save johngrantuk/0e1cc66898674c7a4946 to your computer and use it in GitHub Desktop.
Django Channels ws_message consumer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ws_message(message): | |
# ASGI WebSocket packet-received and send-packet message types | |
# both have a "text" key for their textual data. | |
print("Received!!" + message['text']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment