Search
Preparing search index...
The search index is not available
@jolocom/sdk - v1.0.0
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"src/transports"
TransportKeeper
Class TransportKeeper
Hierarchy
TransportKeeper
Index
Constructors
constructor
Properties
http
ws
Methods
register
start
Constructors
constructor
new
Transport
Keeper
(
)
:
TransportKeeper
Returns
TransportKeeper
Properties
http
http
:
HTTPTransport
= new HTTPTransport()
ws
ws
:
WebSocketTransport
= new WebSocketTransport()
Methods
register
register
(
typeName
:
string
, handler
:
TransportHandler
)
:
void
Parameters
typeName:
string
handler:
TransportHandler
Returns
void
start
start
(
transport
:
TransportDesc
, onMessage
?:
TransportMessageHandler
)
:
Promise
<
TransportAPI
>
Start a transport given a
TransportDesc
and a
TransportMessageHandler
.
Parameters
transport:
TransportDesc
Optional
onMessage:
TransportMessageHandler
Returns
Promise
<
TransportAPI
>
Globals
"src/transports"
Transport
Keeper
constructor
http
ws
register
start
Transportable
Generated using
TypeDoc
Start a transport given a TransportDesc and a TransportMessageHandler.