Skip to content

Commit

Permalink
[vm] added method to send message
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Lenz committed Jun 25, 2018
1 parent 8aa7244 commit 1d57fe2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion vm-raw/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,16 @@ export default {
/**
* @desc get ethereum address of the current user (from pangea)
*/
pangeaETHAddress: global.pangeaETHAddress
pangeaETHAddress: global.pangeaETHAddress,

/**
* @desc send a message via the chat
* @desc {string} type Type of this message e.g. "SEND_MONEY" (can be chosen by developer)
* @desc {string} group Group that the message relates to
* @desc {object} params A set of parameters
* @desc {bool} shouldSend Should this message be send to your chat partners
* @desc {bool} shouldRender Should this message be rendered
* @desc {function} callback The callback will be called when the message has been send
*/
sendMessage: global.sendMessage,
}

0 comments on commit 1d57fe2

Please sign in to comment.