()
| 7 | private mWebSocket: WebSocket.Server; |
| 8 | |
| 9 | static async getInstance() { |
| 10 | if (!this.mInstance) { |
| 11 | this.mInstance = (async () => { |
| 12 | const port = await getPort(); |
| 13 | const instance = new BoardcastManager(port); |
| 14 | return instance; |
| 15 | })(); |
| 16 | } |
| 17 | return this.mInstance; |
| 18 | } |
| 19 | |
| 20 | constructor(port: number) { |
| 21 | this.mPort = port; |
no outgoing calls
no test coverage detected