You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

mservice-chat

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mservice-chat

mservice-chat

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

MService Chat

npm version Build Status codecov

Docker image

API requests

API documentation. See mservice for more details about making requests. Some examples:

  • HTTP
curl -H "Content-Type: application/json" -X POST -d '{"foo":"bar"}' http://localhost:3000/api/chat/rooms/list
  • socket.io
socketClient.emit('api.chat.rooms.join', { id: '<roomId>'}, callback)

Auth

  • HTTP Add token to request params
curl -H "Content-Type: application/json" -X POST -d '{"token":"user-token"}' http://localhost:3000/api/chat/rooms/list
  • socket.io
const client = socketIOClient('http://0.0.0.0:3000', { query: 'token=user-token' });

FAQs

Package last updated on 11 Mar 2019

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