Skip to content

Commit

Permalink
user_process: handle (stub) more message types in UserProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
asedeno committed May 3, 2020
1 parent 4b90152 commit cadb996
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion roost_backend/user_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,16 @@ async def run(self):

# Start of Channel Layer message handlers
async def test(self, message):
print(message)
print(self.principal, 'test', message)

async def zwrite(self, message):
print(self.principal, 'zwrite', message['message'])

async def subscribe(self, message):
print(self.principal, 'subscribe', message)

async def unsubscribe(self, message):
print(self.principal, 'unsubscribe', message)
# End message handlers

async def zephyr_handler(self):
Expand Down

0 comments on commit cadb996

Please sign in to comment.