Skip to content

Commit

Permalink
[vm] added openHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Lenz committed Jun 25, 2018
1 parent 1d57fe2 commit 35916b9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions vm-raw/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ export default {

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

/**
* @desc set open handler
* @param {function} callback
*/
setOpenHandler: global.onOpen,
}

0 comments on commit 35916b9

Please sign in to comment.