Guest User

Untitled

a guest
May 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Es.
  2. REST CALL -> KillAllHumans
  3. NODEJS -> pass KillAllHumans to websocket;
  4. BROWSER -> onmessage -> javascript_library.killAllHumans;
  5.  
  6. echo_service = new WebSocket(websocketUrl,"echo-protocol");
  7. echo_service.onmessage = function(event)
  8. {
  9. var result = javascript_library.manageAction(event.data);
  10. return result;
  11. }
Add Comment
Please, Sign In to add comment