@inrupt/solid-client-notifications / websocketNotification / IWebsocketNotification
Interface: IWebsocketNotification#
websocketNotification.IWebsocketNotification
Implemented by#
Table of contents#
Methods#
Methods#
off#
▸ off(event
, listener
): this
Removes a listener for the “connected” event
Parameters#
Name |
Type |
---|---|
|
|
|
() => |
Returns#
this
Defined in#
src/websocketNotification.ts:44
▸ off(event
, listener
): this
Removes a listener for the “closed” event
Parameters#
Name |
Type |
---|---|
|
|
|
() => |
Returns#
this
Defined in#
src/websocketNotification.ts:57
▸ off(event
, listener
): this
Removes a listener for the “message” event
Parameters#
Name |
Type |
---|---|
|
|
|
( |
Returns#
this
Defined in#
src/websocketNotification.ts:77
▸ off(event
, listener
): this
Removes a listener for the “error” event
Parameters#
Name |
Type |
---|---|
|
|
|
( |
Returns#
this
Defined in#
on#
▸ on(event
, listener
): this
Emitted when the connection is established
Parameters#
Name |
Type |
---|---|
|
|
|
() => |
Returns#
this
Defined in#
src/websocketNotification.ts:36
▸ on(event
, listener
): this
Emitted when the connection is closed
Parameters#
Name |
Type |
---|---|
|
|
|
() => |
Returns#
this
Defined in#
src/websocketNotification.ts:49
▸ on(event
, listener
): this
Emitted when a valid notification is received, the payload is a activitystreams Activity.
Parameters#
Name |
Type |
---|---|
|
|
|
( |
Returns#
this
Defined in#
src/websocketNotification.ts:65
▸ on(event
, listener
): this
Emitted when an error is encountered on the WebSocket
Parameters#
Name |
Type |
---|---|
|
|
|
( |
Returns#
this
Defined in#
once#
▸ once(event
, listener
): this
Emitted when the next connection is established
Parameters#
Name |
Type |
---|---|
|
|
|
() => |
Returns#
this
Defined in#
src/websocketNotification.ts:40
▸ once(event
, listener
): this
Emitted when the next connection is closed
Parameters#
Name |
Type |
---|---|
|
|
|
() => |
Returns#
this
Defined in#
src/websocketNotification.ts:53
▸ once(event
, listener
): this
Emitted when the next valid notification is received, the payload is a activitystreams Activity.
Parameters#
Name |
Type |
---|---|
|
|
|
( |
Returns#
this
Defined in#
src/websocketNotification.ts:72
▸ once(event
, listener
): this
Emitted when the next error is encountered on the WebSocket
Parameters#
Name |
Type |
---|---|
|
|
|
( |
Returns#
this