Created
September 26, 2019 22:47
-
-
Save hyperlogic/afeb79d5aeed2e7f5752205405c3e583 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // bugz-1538 repro subject script | |
| // TODO: connect to domain. | |
| function onMessageHandler(channel, message, sender) { | |
| if (channel !== "ajt-repro") { | |
| return; | |
| } | |
| var data = JSON.parse(message); | |
| if (data.command === "pong") { | |
| print("AJT: pong from sender = " + sender + ", message = " + message); | |
| } | |
| } | |
| Messages.messageReceived.connect(onMessageHandler); | |
| Messages.subscribe("ajt-repro"); | |
| Messages.sendMessage("ajt-repro", JSON.stringify({command: "ping", uuid: MyAvatar.sessionUUID})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment