diff --git a/channels/binding/websockets.py b/channels/binding/websockets.py index 81a7ede..a8fa40d 100644 --- a/channels/binding/websockets.py +++ b/channels/binding/websockets.py @@ -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 = {