Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Es.
- REST CALL -> KillAllHumans
- NODEJS -> pass KillAllHumans to websocket;
- BROWSER -> onmessage -> javascript_library.killAllHumans;
- echo_service = new WebSocket(websocketUrl,"echo-protocol");
- echo_service.onmessage = function(event)
- {
- var result = javascript_library.manageAction(event.data);
- return result;
- }
Add Comment
Please, Sign In to add comment