mservice-chat
v3.0.0
Published
mservice-chat
Downloads
18
Readme
MService Chat
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' });