diff --git a/vm-raw/index.js b/vm-raw/index.js index 6adfcb2..607904e 100644 --- a/vm-raw/index.js +++ b/vm-raw/index.js @@ -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, }