Skip to content

Commit

Permalink
Resolve issue afrad#54
Browse files Browse the repository at this point in the history
Method send4Direct always return false (don't work)
  • Loading branch information
raugaral committed Feb 16, 2017
1 parent 95c5b4b commit e9575a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/angular2-websocket.ts
Expand Up @@ -96,11 +96,11 @@ export class $WebSocket {
this.connect();
}
self.sendQueue.push({message: data});
if (self.socket.readyState === self.readyStateConstants.RECONNECT_ABORTED) {
return false;
} else {
if (self.socket.readyState === self.readyStateConstants.OPEN) {
self.fireQueue();
return true;
} else {
return false;
}
}

Expand Down

0 comments on commit e9575a8

Please sign in to comment.