Search
Preparing search index...
The search index is not available
Sociably
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Sociably
webview
WebviewBot
Class WebviewBot
Hierarchy
WebviewBot
Implements
SociablyBot
<
WebviewDispatchChannel
,
WebSocketJob
,
WebSocketResult
>
Index
Constructors
constructor
Properties
engine
platform
Methods
disconnect
render
send
send
Topic
send
User
start
stop
subscribe
Topic
unsubscribe
Topic
Constructors
constructor
new
Webview
Bot
(
server
:
WebviewSocketServer
<
AnyServerAuthenticator
>
, initScope
?:
InitScopeFn
, dispatchWrapper
?:
DispatchWrapper
<
WebSocketJob
,
WebviewDispatchFrame
,
WebSocketResult
>
)
:
WebviewBot
Parameters
server:
WebviewSocketServer
<
AnyServerAuthenticator
>
Optional
initScope:
InitScopeFn
Optional
dispatchWrapper:
DispatchWrapper
<
WebSocketJob
,
WebviewDispatchFrame
,
WebSocketResult
>
Returns
WebviewBot
Properties
engine
engine
:
default
<
WebviewDispatchChannel
,
EventInput
,
WebviewComponent
,
WebSocketJob
,
WebSocketResult
>
platform
platform
:
"webview"
= WEBVIEW
Methods
disconnect
disconnect
(
connection
:
WebviewConnection
, reason
?:
string
)
:
Promise
<
boolean
>
Parameters
connection:
WebviewConnection
Optional
reason:
string
Returns
Promise
<
boolean
>
render
render
(
channel
:
WebviewDispatchChannel
, message
:
SociablyNode
)
:
Promise
<
null
|
WebSocketDispatchResponse
>
Parameters
channel:
WebviewDispatchChannel
message:
SociablyNode
Returns
Promise
<
null
|
WebSocketDispatchResponse
>
send
send
(
channel
:
WebviewConnection
, content
:
EventInput
|
EventInput
[]
)
:
Promise
<
SendResult
>
Parameters
channel:
WebviewConnection
content:
EventInput
|
EventInput
[]
Returns
Promise
<
SendResult
>
send
Topic
send
Topic
(
topic
:
string
, content
:
EventInput
|
EventInput
[]
)
:
Promise
<
SendResult
>
Parameters
topic:
string
content:
EventInput
|
EventInput
[]
Returns
Promise
<
SendResult
>
send
User
send
User
(
user
:
SociablyUser
, content
:
EventInput
|
EventInput
[]
)
:
Promise
<
SendResult
>
Parameters
user:
SociablyUser
content:
EventInput
|
EventInput
[]
Returns
Promise
<
SendResult
>
start
start
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
subscribe
Topic
subscribe
Topic
(
connection
:
WebviewConnection
, topic
:
string
)
:
Promise
<
boolean
>
Parameters
connection:
WebviewConnection
topic:
string
Returns
Promise
<
boolean
>
unsubscribe
Topic
unsubscribe
Topic
(
connection
:
WebviewConnection
, topic
:
string
)
:
Promise
<
boolean
>
Parameters
connection:
WebviewConnection
topic:
string
Returns
Promise
<
boolean
>
Modules
auth
core
create-
app
dev-
tools
dialogflow
http
line
messenger
next
redis-
state
script
stream
telegram
twitter
websocket
webview
webview/client
default
Webview
Bot
constructor
engine
platform
disconnect
render
send
send
Topic
send
User
start
stop
subscribe
Topic
unsubscribe
Topic
Generated using
TypeDoc