Skip to content

Commit a9e63be

Browse files
committed
Add the required receive method to ChannelsConnectionContext
1 parent 6f72dec commit a9e63be

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

graphql_ws/django/subscriptions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ def closed(self):
2222
async def close(self, code):
2323
await self.ws.close(code=code)
2424

25+
async def receive(self, code):
26+
"""
27+
Unused, as the django consumer handles receiving messages and passes
28+
them straight to ChannelsSubscriptionServer.on_message.
29+
"""
30+
2531

2632
class ChannelsSubscriptionServer(BaseAsyncSubscriptionServer):
2733
async def handle(self, ws, request_context=None):

0 commit comments

Comments
 (0)