blocktalk-sdk
v1.2.13
Published
Check out basic example
Downloads
3
Readme
Check out basic example
Readme coming soon!
/_ Hooks _/ // ClientAuth (required) { data, channelId, cb? }, return promise as user identifier (string) // ClientMessage { userId, channelId, data, cb? }, return a falsey promise to reject, truthy to accept
/_ Effects _/ // // ServerMesage is called when a message comes in from BlockTalk servers. This will ALSO be called instantly // // When you send a message (please note this is not an acknowledgment of receipt), but will include {local: true} // // So that you may short circuit (ignore) it if you please // ServerMessage { // channelId, // local?, // This will // message: { // payload, // Everything in here has it's value encrypted but not it's key // action, // Currently limited to 'Message' but will expand further in the future // sender // userId of the connected client socket that sent the message // } // } // AuthSuccess { channelId } // Called when you successfully connect to BlockTalk servers // ClientDisconnect { userId, channelId } // Called when one of your sockets disconnects