mirror of
https://github.com/django/daphne.git
synced 2025-04-20 08:42:18 +03:00
commit
b4263d0f1b
|
@ -1,4 +1,4 @@
|
|||
import json
|
||||
from django.core.serializers.json import json, DjangoJSONEncoder
|
||||
|
||||
from ..channel import Group, Channel
|
||||
from ..auth import channel_session_user_from_http
|
||||
|
@ -222,4 +222,4 @@ class WebsocketDemultiplexer(JsonWebsocketConsumer):
|
|||
return {"text": json.dumps({
|
||||
"stream": stream,
|
||||
"payload": payload,
|
||||
})}
|
||||
}, cls=DjangoJSONEncoder)}
|
||||
|
|
Loading…
Reference in New Issue
Block a user