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
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 = ;