mirror of
https://github.com/django/daphne.git
synced 2025-07-14 18:02:17 +03:00
add encode to WbesocketBinding
This commit is contained in:
parent
d7b99fa935
commit
38430b41d1
|
@ -32,6 +32,10 @@ class WebsocketBinding(Binding):
|
||||||
stream = None
|
stream = None
|
||||||
|
|
||||||
# Outbound
|
# Outbound
|
||||||
|
@classmethod
|
||||||
|
def encode(cls, stream, payload):
|
||||||
|
return WebsocketDemultiplexer.encode(stream, payload)
|
||||||
|
|
||||||
|
|
||||||
def serialize(self, instance, action):
|
def serialize(self, instance, action):
|
||||||
payload = {
|
payload = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user