Search
Preparing search index...
The search index is not available
@atomist/automation-client
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"internal/transport/websocket/DefaultWebSocketRequestProcessor"
DefaultWebSocketRequestProcessor
Class DefaultWebSocketRequestProcessor
Hierarchy
AbstractRequestProcessor
DefaultWebSocketRequestProcessor
Implements
RequestProcessor
WebSocketRequestProcessor
Index
Constructors
constructor
Properties
automations
configuration
graph
Clients
listeners
registration
web
Socket
Lifecycle
Methods
clear
Namespace
create
And
Wrap
Message
Client
create
Graph
Client
create
Message
Client
invoke
Command
invoke
Event
on
Connect
on
Disconnect
on
Registration
process
Command
process
Event
send
Command
Status
send
Event
Status
send
Status
Message
setup
Namespace
Constructors
constructor
new
Default
Web
Socket
Request
Processor
(
automations
:
AutomationServer
, configuration
:
Configuration
, listeners
?:
AutomationEventListener
[]
)
:
DefaultWebSocketRequestProcessor
Parameters
automations:
AutomationServer
configuration:
Configuration
Default value
listeners:
AutomationEventListener
[]
= []
Returns
DefaultWebSocketRequestProcessor
Properties
Protected
automations
automations
:
AutomationServer
Protected
configuration
configuration
:
Configuration
Private
graph
Clients
graph
Clients
:
GraphClientFactory
Protected
listeners
listeners
:
AutomationEventListener
[]
Private
Optional
registration
registration
:
RegistrationConfirmation
Private
Readonly
web
Socket
Lifecycle
web
Socket
Lifecycle
:
WebSocketLifecycle
Methods
Protected
clear
Namespace
clear
Namespace
(
)
:
void
Returns
void
Protected
create
And
Wrap
Message
Client
create
And
Wrap
Message
Client
(
event
:
EventIncoming
|
CommandIncoming
, context
:
HandlerContext
&
AutomationContextAware
)
:
MessageClient
&
SlackMessageClient
Parameters
event:
EventIncoming
|
CommandIncoming
context:
HandlerContext
&
AutomationContextAware
Returns
MessageClient
&
SlackMessageClient
Protected
create
Graph
Client
create
Graph
Client
(
event
:
CommandIncoming
|
EventIncoming
)
:
GraphClient
Parameters
event:
CommandIncoming
|
EventIncoming
Returns
GraphClient
Protected
create
Message
Client
create
Message
Client
(
event
:
CommandIncoming
|
EventIncoming
)
:
MessageClient
Parameters
event:
CommandIncoming
|
EventIncoming
Returns
MessageClient
Protected
invoke
Command
invoke
Command
(
ci
:
CommandInvocation
, ctx
:
HandlerContext
&
AutomationContextAware
, command
:
CommandIncoming
, callback
:
(
result
:
Promise
<
HandlerResult
>
)
=>
void
)
:
void
Parameters
ci:
CommandInvocation
ctx:
HandlerContext
&
AutomationContextAware
command:
CommandIncoming
callback:
(
result
:
Promise
<
HandlerResult
>
)
=>
void
(
result
:
Promise
<
HandlerResult
>
)
:
void
Parameters
result:
Promise
<
HandlerResult
>
Returns
void
Returns
void
Protected
invoke
Event
invoke
Event
(
ef
:
EventFired
<
any
>
, ctx
:
HandlerContext
&
AutomationContextAware
, event
:
EventIncoming
, callback
:
(
results
:
Promise
<
HandlerResult
[]
>
)
=>
void
)
:
void
Parameters
ef:
EventFired
<
any
>
ctx:
HandlerContext
&
AutomationContextAware
event:
EventIncoming
callback:
(
results
:
Promise
<
HandlerResult
[]
>
)
=>
void
(
results
:
Promise
<
HandlerResult
[]
>
)
:
void
Parameters
results:
Promise
<
HandlerResult
[]
>
Returns
void
Returns
void
on
Connect
on
Connect
(
ws
:
WebSocket
)
:
void
Parameters
ws:
WebSocket
Returns
void
on
Disconnect
on
Disconnect
(
)
:
void
Returns
void
on
Registration
on
Registration
(
registration
:
RegistrationConfirmation
)
:
void
Parameters
registration:
RegistrationConfirmation
Returns
void
process
Command
process
Command
(
command
:
CommandIncoming
, callback
?:
(
result
:
Promise
<
HandlerResult
>
)
=>
void
)
:
void
Parameters
command:
CommandIncoming
Default value
callback:
(
result
:
Promise
<
HandlerResult
>
)
=>
void
= () => {}
(
result
:
Promise
<
HandlerResult
>
)
:
void
Parameters
result:
Promise
<
HandlerResult
>
Returns
void
Returns
void
process
Event
process
Event
(
event
:
EventIncoming
, callback
?:
(
results
:
Promise
<
HandlerResult
[]
>
)
=>
void
)
:
void
Parameters
event:
EventIncoming
Default value
callback:
(
results
:
Promise
<
HandlerResult
[]
>
)
=>
void
= () => {}
(
results
:
Promise
<
HandlerResult
[]
>
)
:
void
Parameters
results:
Promise
<
HandlerResult
[]
>
Returns
void
Returns
void
send
Command
Status
send
Command
Status
(
success
:
boolean
, code
:
number
, request
:
CommandIncoming
, ctx
:
HandlerContext
&
AutomationContextAware
)
:
Promise
<
any
>
Parameters
success:
boolean
code:
number
request:
CommandIncoming
ctx:
HandlerContext
&
AutomationContextAware
Returns
Promise
<
any
>
send
Event
Status
send
Event
Status
(
success
:
boolean
, request
:
EventFired
<
any
>
, event
:
EventIncoming
, ctx
:
HandlerContext
&
AutomationContextAware
)
:
Promise
<
any
>
Parameters
success:
boolean
request:
EventFired
<
any
>
event:
EventIncoming
ctx:
HandlerContext
&
AutomationContextAware
Returns
Promise
<
any
>
Protected
send
Status
Message
send
Status
Message
(
payload
:
any
, ctx
:
HandlerContext
&
AutomationContextAware
)
:
Promise
<
any
>
Parameters
payload:
any
ctx:
HandlerContext
&
AutomationContextAware
Returns
Promise
<
any
>
Protected
setup
Namespace
setup
Namespace
(
request
:
any
, automations
:
AutomationServer
, invocationId
?:
string
, ts
?:
number
)
:
{
correlationId
:
any
;
invocationId
:
string
;
name
:
string
;
operation
:
any
;
ts
:
number
;
version
:
string
;
workspaceId
:
any
;
workspaceName
:
any
}
Parameters
request:
any
automations:
AutomationServer
Default value
invocationId:
string
= guid()
Default value
ts:
number
= Date.now()
Returns
{
correlationId
:
any
;
invocationId
:
string
;
name
:
string
;
operation
:
any
;
ts
:
number
;
version
:
string
;
workspaceId
:
any
;
workspaceName
:
any
}
correlation
Id
:
any
invocation
Id
:
string
name
:
string
operation
:
any
ts
:
number
version
:
string
workspace
Id
:
any
workspace
Name
:
any
Globals
"internal/transport/websocket/
Default
Web
Socket
Request
Processor"
Default
Web
Socket
Request
Processor
constructor
automations
configuration
graph
Clients
listeners
registration
web
Socket
Lifecycle
clear
Namespace
create
And
Wrap
Message
Client
create
Graph
Client
create
Message
Client
invoke
Command
invoke
Event
on
Connect
on
Disconnect
on
Registration
process
Command
process
Event
send
Command
Status
send
Event
Status
send
Status
Message
setup
Namespace
Generated using
TypeDoc