mservice-chat

3.0.0 • Public • Published

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' });

Readme

Keywords

none

Package Sidebar

Install

npm i mservice-chat

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

424 kB

Total Files

124

Last publish

Collaborators

  • avvs