Skip to content

Commit 6ea64e5

Browse files
author
Brandyn A. White
committed
Fixed typo in pubsub
Signed-off-by: Brandyn A. White <[email protected]>
1 parent 06708b3 commit 6ea64e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pubsub.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Example: Ping/Pong
2121
if (WS.scriptVersion(1)) return;
2222
WS.serverConnect('{{WSUrl}}', function () {
2323
WS.subscribe('pong', function (chan, timestamp0, timestamp1, groupDevice) {
24-
WS.log('Pong: ' + groupDevice + ': Remote - Glass0: ' + (timestamp1 - timestamp0) + ' Glass1 - Glass0: ' + ((new Date).getTime() / 1000) - timestamp0);
24+
WS.log('Pong: ' + groupDevice + ': Remote - Glass0: ' + (timestamp1 - timestamp0) + ' Glass1 - Glass0: ' + (((new Date).getTime() / 1000) - timestamp0));
2525
});
2626
setInterval(function () {
2727
WS.publish('ping', 'pong', (new Date).getTime() / 1000);

0 commit comments

Comments
 (0)