0.0.4 • Published 9 years ago

janus-method-chat v0.0.4

Weekly downloads
3
License
LGPL 2.1
Repository
github
Last release
9 years ago

janus-method-chat

Replaces built-in 'chat' method, adds private communication.

What it does:

Enables chatting, including sending a private message from one user to another.

Configuration options:

None

Syntax:

Send 'Hello' to everyone:

{"method": "chat", "data": {"message": "Hi"}}

Everyone in room receives:

{"method":"user_chat", "data":{"roomId":"69de79e1077103cb59d1a890e96c7ef2","userId":"Alice", "message":"Hello"}}

Send 'Hi' to user 'Bob':

{"method": "chat", "data": {"toUserId": "Bob", "message": "Hi"}}

'Bob' receives:

{"method": "user_chat", "data": {"userId": "Alice", "toUserId": "Bob", "message": "Hi"}}