Advertisement
salahzar

Send a message

May 23rd, 2013
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var myVarA, myVarB;
  2.  
  3. function init() {
  4. myVarA = 10;
  5. myVarB = 25;
  6.  
  7. broadcastMessage({
  8. channel: 'mycustomchannel',
  9. message: 'hello',
  10. data: {varA: myVarA, varB: myVarB},
  11. radius: 10
  12. });
  13. }
  14.  
  15. handlerCreate({
  16.   name: 'init',
  17.   channel: 'direct',
  18.   message: 'clickStart'
  19. });
  20.  
  21. init();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement