Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1007 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 1007 Bytes

liquichain module

Websocket endpoint

A websocket endpoint allow clients to register themself and send messages to other users.

Its address is ws://dev.jips.io/meveo/ws/liquichain

Registration

message :

{
"action":"register",
"account":"<wallet address of the client>"
}

this message bind the open websocket to the wallet address of the client

if some pending message are queued by the server for this wallet address, they are sent to the client

Send message

WebSocket endpoint: ws://localhost:8080/meveo/ws/liquichain

smaple message:

{
    "message":"Hello! How are you?",
    "to":"<wallet address of the client>",
    "action":"message",
    "persistMessage": false
}

in above message payload, persistMessage boolean parameter is not mandatory, if it is not supplied then by default its assumed true.