(data: WSCommandType)
| 220 | } |
| 221 | |
| 222 | pushMessage(data: WSCommandType) { |
| 223 | if (!this.open) { |
| 224 | if (data.wscommand === "rpc" && data.message) { |
| 225 | const cmd = data.message.command; |
| 226 | if (cmd === "routeannounce" || cmd === "routeunannounce") { |
| 227 | return; |
| 228 | } |
| 229 | } |
| 230 | this.msgQueue.push(data); |
| 231 | return; |
| 232 | } |
| 233 | this.sendMessage(data); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | let globalWS: WSControl; |
no test coverage detected