Search
Preparing search index...
The search index is not available
@servicestack/ui
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@servicestack/ui
client
ServerEventsClient
Class ServerEventsClient
Hierarchy
ServerEventsClient
Index
Constructors
constructor
Properties
Event
Source
_on
Message
channels
connection
Info
event
Source
event
Stream
Uri
listeners
on
Error
on
Message
options
resolver
service
Client
stopped
update
Subscriber
Url
with
Credentials
Unknown
Channel
Methods
add
Listener
get
Channel
Subscribers
get
Connection
Info
get
Event
Source
Options
get
Subscription
Id
has
Connected
invoke
Receiver
raise
Event
reconnect
Server
Events
register
Handler
register
Named
Receiver
register
Receiver
remove
Listener
set
Resolver
start
stop
subscribe
To
Channels
to
Server
Event
User
unregister
Receiver
unsubscribe
From
Channels
update
update
Channels
update
Subscriber
Constructors
constructor
new
Server
Events
Client
(
baseUrl
:
string
, channels
:
string
[]
, options
?:
IEventSourceOptions
, eventSource
?:
IEventSourceStatic
)
:
ServerEventsClient
Parameters
baseUrl:
string
channels:
string
[]
Optional
options:
IEventSourceOptions
Optional
eventSource:
IEventSourceStatic
Returns
ServerEventsClient
Properties
Event
Source
Event
Source
:
IEventSourceStatic
_on
Message
_on
Message
:
(
(
e
:
IOnMessageEvent
)
=>
void
)
Type declaration
(
e
:
IOnMessageEvent
)
:
void
Parameters
e:
IOnMessageEvent
Returns
void
channels
channels
:
string
[]
connection
Info
connection
Info
:
ServerEventConnect
event
Source
event
Source
:
IEventSourceStatic
event
Stream
Uri
event
Stream
Uri
:
string
listeners
listeners
:
{}
Type declaration
[
index:
string
]:
(
(
e
:
ServerEventMessage
)
=>
void
)
[]
on
Error
on
Error
:
(
(
error
?:
any
)
=>
void
)
Type declaration
(
error
?:
any
)
:
void
Parameters
Optional
error:
any
Returns
void
on
Message
on
Message
:
(
(
e
:
IOnMessageEvent
)
=>
void
)
Type declaration
(
e
:
IOnMessageEvent
)
:
void
Parameters
e:
IOnMessageEvent
Returns
void
options
options
:
IEventSourceOptions
resolver
resolver
:
IResolver
service
Client
service
Client
:
JsonServiceClient
stopped
stopped
:
boolean
update
Subscriber
Url
update
Subscriber
Url
:
string
with
Credentials
with
Credentials
:
boolean
Static
Unknown
Channel
Unknown
Channel
:
string
Methods
add
Listener
add
Listener
(
eventName
:
string
, handler
:
(
(
e
:
ServerEventMessage
)
=>
void
)
)
:
ServerEventsClient
Parameters
eventName:
string
handler:
(
(
e
:
ServerEventMessage
)
=>
void
)
(
e
:
ServerEventMessage
)
:
void
Parameters
e:
ServerEventMessage
Returns
void
Returns
ServerEventsClient
get
Channel
Subscribers
get
Channel
Subscribers
(
)
:
Promise
<
ServerEventUser
[]
>
Returns
Promise
<
ServerEventUser
[]
>
get
Connection
Info
get
Connection
Info
(
)
:
ServerEventConnect
Returns
ServerEventConnect
get
Event
Source
Options
get
Event
Source
Options
(
)
:
{
withCredentials
:
boolean
}
Returns
{
withCredentials
:
boolean
}
with
Credentials
:
boolean
get
Subscription
Id
get
Subscription
Id
(
)
:
string
Returns
string
has
Connected
has
Connected
(
)
:
boolean
Returns
boolean
invoke
Receiver
invoke
Receiver
(
r
:
any
, cmd
:
string
, el
:
Element
, request
:
ServerEventMessage
, name
:
string
)
:
void
Parameters
r:
any
cmd:
string
el:
Element
request:
ServerEventMessage
name:
string
Returns
void
raise
Event
raise
Event
(
eventName
:
string
, msg
:
ServerEventMessage
)
:
void
Parameters
eventName:
string
msg:
ServerEventMessage
Returns
void
reconnect
Server
Events
reconnect
Server
Events
(
opt
?:
IReconnectServerEventsOptions
)
:
IEventSourceStatic
Parameters
Optional
opt:
IReconnectServerEventsOptions
Returns
IEventSourceStatic
register
Handler
register
Handler
(
name
:
string
, fn
:
Function
)
:
ServerEventsClient
Parameters
name:
string
fn:
Function
Returns
ServerEventsClient
register
Named
Receiver
register
Named
Receiver
(
name
:
string
, receiver
:
any
)
:
ServerEventsClient
Parameters
name:
string
receiver:
any
Returns
ServerEventsClient
register
Receiver
register
Receiver
(
receiver
:
any
)
:
ServerEventsClient
Parameters
receiver:
any
Returns
ServerEventsClient
remove
Listener
remove
Listener
(
eventName
:
string
, handler
:
(
(
e
:
ServerEventMessage
)
=>
void
)
)
:
ServerEventsClient
Parameters
eventName:
string
handler:
(
(
e
:
ServerEventMessage
)
=>
void
)
(
e
:
ServerEventMessage
)
:
void
Parameters
e:
ServerEventMessage
Returns
void
Returns
ServerEventsClient
set
Resolver
set
Resolver
(
resolver
:
IResolver
)
:
ServerEventsClient
Parameters
resolver:
IResolver
Returns
ServerEventsClient
start
start
(
)
:
ServerEventsClient
Returns
ServerEventsClient
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
subscribe
To
Channels
subscribe
To
Channels
(
...
channels
:
string
[]
)
:
Promise
<
void
>
Parameters
Rest
...
channels:
string
[]
Returns
Promise
<
void
>
to
Server
Event
User
to
Server
Event
User
(
map
:
{}
)
:
ServerEventUser
Parameters
map:
{}
[
id:
string
]:
string
Returns
ServerEventUser
unregister
Receiver
unregister
Receiver
(
name
?:
string
)
:
ServerEventsClient
Parameters
Optional
name:
string
Returns
ServerEventsClient
unsubscribe
From
Channels
unsubscribe
From
Channels
(
...
channels
:
string
[]
)
:
Promise
<
void
>
Parameters
Rest
...
channels:
string
[]
Returns
Promise
<
void
>
update
update
(
subscribe
:
string
|
string
[]
, unsubscribe
:
string
|
string
[]
)
:
void
Parameters
subscribe:
string
|
string
[]
unsubscribe:
string
|
string
[]
Returns
void
update
Channels
update
Channels
(
channels
:
string
[]
)
:
void
Parameters
channels:
string
[]
Returns
void
update
Subscriber
update
Subscriber
(
request
:
UpdateEventSubscriber
)
:
Promise
<
void
>
Parameters
request:
UpdateEventSubscriber
Returns
Promise
<
void
>
Modules
admin
client
explorer
locode
shared
Server
Events
Client
constructor
Event
Source
_on
Message
channels
connection
Info
event
Source
event
Stream
Uri
listeners
on
Error
on
Message
options
resolver
service
Client
stopped
update
Subscriber
Url
with
Credentials
Unknown
Channel
add
Listener
get
Channel
Subscribers
get
Connection
Info
get
Event
Source
Options
get
Subscription
Id
has
Connected
invoke
Receiver
raise
Event
reconnect
Server
Events
register
Handler
register
Named
Receiver
register
Receiver
remove
Listener
set
Resolver
start
stop
subscribe
To
Channels
to
Server
Event
User
unregister
Receiver
unsubscribe
From
Channels
update
update
Channels
update
Subscriber
Generated using
TypeDoc