Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. onmessage = function(message){
  2.  
  3. console.log("We received " + message);
  4. onmessage = null;
  5. }
  6.  
  7.  
  8. //Initial guess to launch the ping/pong in and outside the sandbox
  9. var answer = ['R','P','P','B'];
  10. postMessage(answer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement