@azure/web-pubsub-client package
Classes
| InvocationError |
Error thrown when an invocation fails or is cancelled. |
| SendMessageError |
Error when sending message failed |
| WebPubSubClient |
The WebPubSub client |
Interfaces
| AbortGroupStreamOptions |
Abort group stream options. |
| AckMessage |
The ack message |
| AckMessageError |
Error detail in AckMessage |
| CancelInvocationMessage |
Cancel invocation message |
| ConnectedMessage |
Connected message |
| DisconnectedMessage |
Disconnected message |
| EndGroupStreamOptions |
End group stream options. |
| GetClientAccessUrlOptions |
The start options |
| GroupDataMessage |
Group data message |
| GroupStateItem |
A single connection's state entry within a group |
| GroupStateSnapshotMessage |
Group state snapshot message, sent after a successful subscribeGroupState |
| GroupStateUpdateMessage |
Group state update message, pushed when a connection's state changes |
| GroupStream |
A single inbound group stream. |
| GroupStreamMessage |
One inbound fragment of a group stream. |
| GroupStreamSubscription |
Subscription returned by |
| GroupStreamWriteOptions |
Group stream write options. |
| GroupStreamWriter |
Group stream writer abstraction for sending one logical stream to a group. |
| InvocationErrorOptions | |
| InvokeEventOptions |
Invoke event operation options |
| InvokeEventResult |
Result of invokeEvent |
| InvokeMessage |
Invoke message |
| InvokeResponseError |
Invoke response error details |
| InvokeResponseMessage |
Invoke response message |
| JoinGroupMessage |
Join group message |
| JoinGroupOptions |
Join group operation options |
| LeaveGroupMessage |
Leave group message |
| LeaveGroupOptions |
Leave group operation options |
| OnConnectedArgs |
Parameter of OnConnected callback |
| OnDisconnectedArgs |
Parameter of OnDisconnected callback |
| OnGroupDataMessageArgs |
Parameter of OnGroupDataMessage callback |
| OnGroupStreamOptions |
Options controlling how inbound group streams are tracked and dispatched for a
single callback registered via Granularity is two-level:
|
| OnRejoinGroupFailedArgs |
Parameter of RejoinGroupFailed callback |
| OnServerDataMessageArgs |
Parameter of OnDataMessage callback |
| OnStoppedArgs |
Parameter of OnStopped callback |
| OpenGroupStreamOptions |
openGroupStream operation options. |
| PingMessage |
Ping message |
| PongMessage |
The pong message |
| SendEventMessage |
Send custom event message |
| SendEventOptions |
Send event operation options |
| SendMessageErrorOptions | |
| SendToGroupMessage |
Send to group message |
| SendToGroupOptions |
Send to group operation options |
| SequenceAckMessage |
Sequence ack message |
| ServerDataMessage |
Server data message |
| SetGroupStateMessage |
Set group state message |
| StartOptions |
The start options |
| StartStreamOptions |
Stream descriptor attached to a sendToGroup control frame that opens a stream. |
| StreamAckMessage |
Stream ack message. |
| StreamClosedMessage |
Stream closed message. |
| StreamDataError |
Stream error detail. |
| StreamDataMessage |
Stream data message. A payload with only |
| StreamEndError |
Stream end error that an outbound stream can send to the service. The service decides the high-level error name classification. |
| StreamEndMessage |
Stream end message. |
| StreamInfo |
Stream metadata attached to a downstream data message. |
| StreamNackMessage |
Stream nack message. |
| SubscribeGroupStateMessage |
Subscribe group state message |
| UnsubscribeGroupStateMessage |
Unsubscribe group state message |
| WebPubSubClientCredential |
The WebPubSubClient credential |
| WebPubSubClientOptions |
The client options |
| WebPubSubClientProtocol |
The interface to be implemented for a web pubsub subprotocol |
| WebPubSubMessageBase |
The common of web pubsub message |
| WebPubSubResult |
The ack result |
| WebPubSubRetryOptions |
The retry options |
Type Aliases
| DownstreamMessageType |
Types for downstream messages |
| JSONTypes |
Types which can be serialized and sent as JSON. |
| RetryMode |
Describes the Retry Mode type |
| UpstreamMessageType |
Types for upstream messages |
| WebPubSubDataType |
The data type |
| WebPubSubMessage |
The web pubsub message |
Functions
| Web |
Return the "json.webpubsub.azure.v1" protocol |
| Web |
Return the "json.reliable.webpubsub.azure.v1" protocol |
Function Details
WebPubSubJsonProtocol()
Return the "json.webpubsub.azure.v1" protocol
function WebPubSubJsonProtocol(): WebPubSubClientProtocol
Returns
WebPubSubJsonReliableProtocol()
Return the "json.reliable.webpubsub.azure.v1" protocol
function WebPubSubJsonReliableProtocol(): WebPubSubClientProtocol