WebPubSubEventHandlerOptions interface
The options for the CloudEvents handler.
Properties
allowed |
If not specified, by default allow all the endpoints, otherwise only allow specified endpoints |
handle |
Handle 'connect' event, the service waits for the response to proceed. |
handle |
Handle user events, the service waits for the response to proceed. |
on |
Event trigger for "connected" unblocking event. This is an unblocking event and the service does not wait for the response. |
on |
Event triggers for "disconnected" unblocking event. This is an unblocking event and the service does not wait for the response. |
path | Custom serving path for the path of the CloudEvents handler. |
Property Details
allowedEndpoints
If not specified, by default allow all the endpoints, otherwise only allow specified endpoints
allowedEndpoints?: string[]
Property Value
string[]
handleConnect
Handle 'connect' event, the service waits for the response to proceed.
handleConnect?: (connectRequest: ConnectRequest, connectResponse: ConnectResponseHandler) => void
Property Value
(connectRequest: ConnectRequest, connectResponse: ConnectResponseHandler) => void
handleUserEvent
Handle user events, the service waits for the response to proceed.
handleUserEvent?: (userEventRequest: UserEventRequest, userEventResponse: UserEventResponseHandler) => void
Property Value
(userEventRequest: UserEventRequest, userEventResponse: UserEventResponseHandler) => void
onConnected
Event trigger for "connected" unblocking event. This is an unblocking event and the service does not wait for the response.
onConnected?: (connectedRequest: ConnectedRequest) => void
Property Value
(connectedRequest: ConnectedRequest) => void
onDisconnected
Event triggers for "disconnected" unblocking event. This is an unblocking event and the service does not wait for the response.
onDisconnected?: (disconnectedRequest: DisconnectedRequest) => void
Property Value
(disconnectedRequest: DisconnectedRequest) => void
path
Custom serving path for the path of the CloudEvents handler.
path?: string
Property Value
string