From 1d57fe22ee163ce05f811f5566cf2f89226fbba2 Mon Sep 17 00:00:00 2001 From: Florian Lenz Date: Tue, 26 Jun 2018 01:57:39 +0300 Subject: [PATCH] [vm] added method to send message --- vm-raw/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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, }