(message:string)
| 166 | } |
| 167 | |
| 168 | socketSend(message:string) { |
| 169 | if(this.socket && this.socket.readyState === 1) { |
| 170 | this.socket.send(message); |
| 171 | } else { |
| 172 | this.socketQueue.push(message); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | send(payload:{type: string, [attributes:string]: any}) { |
| 177 | let message = JSON.stringify(payload); |
no test coverage detected