|
@@ -117,6 +117,7 @@ Socket.prototype._setHTTPTimeout = function() {
|
|
Socket.prototype.send = function(data) {
|
|
Socket.prototype.send = function(data) {
|
|
if (!data.type) {
|
|
if (!data.type) {
|
|
this.emit('error', 'Invalid message');
|
|
this.emit('error', 'Invalid message');
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
message = JSON.stringify(data);
|
|
message = JSON.stringify(data);
|