Skip to content

timschwartz/janus-method-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"}}

About

Adds 'method' message for private communication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published