(port, handlers)
| 21 | #disconnectListener = []; |
| 22 | |
| 23 | constructor(port, handlers) { |
| 24 | if (port) { |
| 25 | this.initPort(port); |
| 26 | } |
| 27 | this._handlers = handlers || new Map(); |
| 28 | this._handlerObject = null; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Open port to background script |