mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 06:49:16 +02:00
Basic working poc with favorites send over websocket
This commit is contained in:
parent
e490284511
commit
d509c090d3
7 changed files with 29 additions and 28 deletions
|
@ -1,4 +1,5 @@
|
|||
from channels.generic.websocket import JsonWebsocketConsumer
|
||||
from funkwhale_api.common import channels
|
||||
|
||||
|
||||
class JsonAuthConsumer(JsonWebsocketConsumer):
|
||||
|
@ -9,3 +10,8 @@ class JsonAuthConsumer(JsonWebsocketConsumer):
|
|||
return self.close()
|
||||
|
||||
return self.accept()
|
||||
|
||||
def accept(self):
|
||||
super().accept()
|
||||
for group in self.groups:
|
||||
channels.group_add(group, self.channel_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue