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/channels/channel"
Channel
Class Channel
Hierarchy
Transportable
Channel
Index
Constructors
constructor
Properties
_transportAPI
auth
Promise
ctx
id
initial
Interaction
Accessors
authenticated
counterparty
transportAPI
Methods
get
Summary
processJWT
send
start
start
Thread
stop
Constructors
constructor
new
Channel
(
ctx
:
ChannelKeeper
, initialInteraction
:
Interaction
, transportAPI
?:
TransportAPI
)
:
Channel
Parameters
ctx:
ChannelKeeper
initialInteraction:
Interaction
Optional
transportAPI:
TransportAPI
Returns
Channel
Properties
Protected
Optional
_transportAPI
_transportAPI
:
TransportAPI
auth
Promise
auth
Promise
:
Promise
<
boolean
>
ctx
ctx
:
ChannelKeeper
id
id
:
string
initial
Interaction
initial
Interaction
:
Interaction
Accessors
authenticated
get
authenticated
(
)
:
boolean
Returns
boolean
counterparty
get
counterparty
(
)
:
undefined
|
Identity
Returns
undefined
|
Identity
transportAPI
get
transportAPI
(
)
:
TransportAPI
set
transportAPI
(
api
:
TransportAPI
)
:
void
Returns
TransportAPI
Parameters
api:
TransportAPI
Returns
void
Methods
get
Summary
get
Summary
(
)
:
Promise
<
ChannelSummary
>
Returns
Promise
<
ChannelSummary
>
processJWT
processJWT
(
jwt
:
string
, transportAPI
?:
TransportAPI
)
:
Promise
<
Interaction
<
Flow
<
any
>
>
>
Parameters
jwt:
string
Optional
transportAPI:
TransportAPI
Returns
Promise
<
Interaction
<
Flow
<
any
>
>
>
send
send
(
msg
:
JSONWebToken
<
any
>
)
:
Promise
<
void
>
Parameters
msg:
JSONWebToken
<
any
>
Returns
Promise
<
void
>
start
start
(
onInterxnCb
?:
undefined
|
(
(
interxn
:
Interaction
)
=>
Promise
<
void
>
)
)
:
Promise
<
void
>
Parameters
Optional
onInterxnCb:
undefined
|
(
(
interxn
:
Interaction
)
=>
Promise
<
void
>
)
Returns
Promise
<
void
>
start
Thread
start
Thread
(
tokenOrJwt
:
Interaction
|
JSONWebToken
<
any
>
|
string
)
:
Promise
<
JSONWebToken
<
any
>
>
Parameters
tokenOrJwt:
Interaction
|
JSONWebToken
<
any
>
|
string
Returns
Promise
<
JSONWebToken
<
any
>
>
stop
stop
(
)
:
void
Returns
void
Globals
"src/channels/channel"
Channel
constructor
_transportAPI
auth
Promise
ctx
id
initial
Interaction
authenticated
counterparty
transportAPI
get
Summary
processJWT
send
start
start
Thread
stop
Channel
Summary
Generated using
TypeDoc