We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa25796 commit 324ba0eCopy full SHA for 324ba0e
websocket.js
@@ -5,9 +5,9 @@ include([], function() {
5
this.connectInterval = null;
6
this.serialport = '';
7
var ws = null;
8
- this.messageCallback = function(evt) {};
+ this.onMessage = function(evt) {};
9
10
- this.connectCallback = function() {};
+ this.onConnect = function() {};
11
12
this.send = function(msg) {};
13
@@ -19,9 +19,9 @@ include([], function() {
19
{
20
// Web Socket is connected, send data using send()
21
clearInterval(_this.connectInterval);
22
- _this.connectCallback();
+ _this.onConnect();
23
ws.onmessage = function(evt) {
24
- _this.messageCallback(evt);
+ _this.onMessage(evt);
25
};
26
27
0 commit comments