New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

janus-method-message

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

janus-method-message

Adds 'method' message for private communication.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

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

Keywords

janusvr

FAQs

Package last updated on 22 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts