UNPKG

@jayzyaj/centrifuge-js-cyy

Version:

Centrifuge and Centrifugo client for NodeJS and browser

483 lines 10.4 kB
{ "nested": { "protocol": { "nested": { "Error": { "fields": { "code": { "type": "uint32", "id": 1 }, "message": { "type": "string", "id": 2 } } }, "MethodType": { "values": { "CONNECT": 0, "SUBSCRIBE": 1, "UNSUBSCRIBE": 2, "PUBLISH": 3, "PRESENCE": 4, "PRESENCE_STATS": 5, "HISTORY": 6, "PING": 7, "SEND": 8, "RPC": 9, "REFRESH": 10, "SUB_REFRESH": 11 } }, "Command": { "fields": { "id": { "type": "uint32", "id": 1 }, "method": { "type": "MethodType", "id": 2 }, "params": { "type": "bytes", "id": 3 } } }, "Reply": { "fields": { "id": { "type": "uint32", "id": 1 }, "error": { "type": "Error", "id": 2 }, "result": { "type": "bytes", "id": 3 } } }, "PushType": { "values": { "PUBLICATION": 0, "JOIN": 1, "LEAVE": 2, "UNSUB": 3, "MESSAGE": 4, "SUB": 5 } }, "Push": { "fields": { "type": { "type": "PushType", "id": 1 }, "channel": { "type": "string", "id": 2 }, "data": { "type": "bytes", "id": 3 } } }, "ClientInfo": { "fields": { "user": { "type": "string", "id": 1 }, "client": { "type": "string", "id": 2 }, "conn_info": { "type": "bytes", "id": 3 }, "chan_info": { "type": "bytes", "id": 4 } } }, "Publication": { "fields": { "seq": { "type": "uint32", "id": 1 }, "gen": { "type": "uint32", "id": 2 }, "uid": { "type": "string", "id": 3 }, "data": { "type": "bytes", "id": 4 }, "info": { "type": "ClientInfo", "id": 5 }, "offset": { "type": "uint64", "id": 6 } } }, "Join": { "fields": { "info": { "type": "ClientInfo", "id": 1 } } }, "Leave": { "fields": { "info": { "type": "ClientInfo", "id": 1 } } }, "Unsub": { "fields": { "resubscribe": { "type": "bool", "id": 1 } } }, "Sub": { "fields": { "recoverable": { "type": "bool", "id": 1 }, "seq": { "type": "uint32", "id": 2 }, "gen": { "type": "uint32", "id": 3 }, "epoch": { "type": "string", "id": 4 }, "offset": { "type": "uint64", "id": 5 } } }, "Message": { "fields": { "data": { "type": "bytes", "id": 1 } } }, "ConnectRequest": { "fields": { "token": { "type": "string", "id": 1 }, "data": { "type": "bytes", "id": 2 }, "subs": { "keyType": "string", "type": "SubscribeRequest", "id": 3 } } }, "ConnectResult": { "fields": { "client": { "type": "string", "id": 1 }, "version": { "type": "string", "id": 2 }, "expires": { "type": "bool", "id": 3 }, "ttl": { "type": "uint32", "id": 4 }, "data": { "type": "bytes", "id": 5 }, "subs": { "keyType": "string", "type": "SubscribeResult", "id": 6 } } }, "RefreshRequest": { "fields": { "token": { "type": "string", "id": 1 } } }, "RefreshResult": { "fields": { "client": { "type": "string", "id": 1 }, "version": { "type": "string", "id": 2 }, "expires": { "type": "bool", "id": 3 }, "ttl": { "type": "uint32", "id": 4 } } }, "SubscribeRequest": { "fields": { "channel": { "type": "string", "id": 1 }, "token": { "type": "string", "id": 2 }, "recover": { "type": "bool", "id": 3 }, "seq": { "type": "uint32", "id": 4 }, "gen": { "type": "uint32", "id": 5 }, "epoch": { "type": "string", "id": 6 }, "offset": { "type": "uint64", "id": 7 } } }, "SubscribeResult": { "fields": { "expires": { "type": "bool", "id": 1 }, "ttl": { "type": "uint32", "id": 2 }, "recoverable": { "type": "bool", "id": 3 }, "seq": { "type": "uint32", "id": 4 }, "gen": { "type": "uint32", "id": 5 }, "epoch": { "type": "string", "id": 6 }, "publications": { "rule": "repeated", "type": "Publication", "id": 7 }, "recovered": { "type": "bool", "id": 8 }, "offset": { "type": "uint64", "id": 9 } } }, "SubRefreshRequest": { "fields": { "channel": { "type": "string", "id": 1 }, "token": { "type": "string", "id": 2 } } }, "SubRefreshResult": { "fields": { "expires": { "type": "bool", "id": 1 }, "ttl": { "type": "uint32", "id": 2 } } }, "UnsubscribeRequest": { "fields": { "channel": { "type": "string", "id": 1 } } }, "UnsubscribeResult": { "fields": {} }, "PublishRequest": { "fields": { "channel": { "type": "string", "id": 1 }, "data": { "type": "bytes", "id": 2 } } }, "PublishResult": { "fields": {} }, "PresenceRequest": { "fields": { "channel": { "type": "string", "id": 1 } } }, "PresenceResult": { "fields": { "presence": { "keyType": "string", "type": "ClientInfo", "id": 1 } } }, "PresenceStatsRequest": { "fields": { "channel": { "type": "string", "id": 1 } } }, "PresenceStatsResult": { "fields": { "num_clients": { "type": "uint32", "id": 1 }, "num_users": { "type": "uint32", "id": 2 } } }, "HistoryRequest": { "fields": { "channel": { "type": "string", "id": 1 } } }, "HistoryResult": { "fields": { "publications": { "rule": "repeated", "type": "Publication", "id": 1 } } }, "PingRequest": { "fields": {} }, "PingResult": { "fields": {} }, "RPCRequest": { "fields": { "data": { "type": "bytes", "id": 1 }, "method": { "type": "string", "id": 2 } } }, "RPCResult": { "fields": { "data": { "type": "bytes", "id": 1 } } }, "SendRequest": { "fields": { "data": { "type": "bytes", "id": 1 } } } } } } }