Class: ConnectionManager

ConnectionManager()

Class: ConnectionManager

Manages the shared websocket connection as well as the ports of the connected tabs.

Constructor

new ConnectionManager()

Source:

Members

ports :Array.<MessagePort>

Type:
  • Array.<MessagePort>
Source:

Methods

_connect(data)

Parameters:
Name Type Description
data
Source:

_onClose(e)

Parameters:
Name Type Description
e CloseEvent
Source:

_onError(error)

Parameters:
Name Type Description
error Event
Source:

_onMessage(message)

Parameters:
Name Type Description
message MessageEvent
Source:

addPort(port)

Parameters:
Name Type Description
port MessagePort
Source:

close(str)

Parameters:
Name Type Description
str string
Source:

send(str)

Parameters:
Name Type Description
str string
Source: