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