This is an Alpha release of the API.

@inrupt/solid-client-notifications / notification / BaseNotification

Class: BaseNotification

notification.BaseNotification

Hierarchy

Constructors

constructor

+ new BaseNotification(topic: string, protocolList: string[], options?: BaseNotificationOptions): BaseNotification

Parameters:

Name

Type

Default value

topic

string

-

protocolList

string[]

-

options

BaseNotificationOptions

{}

Returns: BaseNotification

Defined in: src/notification.ts:91

Properties

features

features: FeatureOptions

Defined in: src/notification.ts:62


fetch

fetch: (input: RequestInfo, init?: RequestInit) => Promise<Response>

Type declaration:

▸ (input: RequestInfo, init?: RequestInit): Promise<Response>

Parameters:

Name

Type

input

RequestInfo

init?

RequestInit

Returns: Promise<Response>

Defined in: node_modules/typescript/lib/lib.dom.d.ts:20004

Defined in: src/notification.ts:58


gateway

Optional gateway: string

Defined in: src/notification.ts:56


host

host: string

Defined in: src/notification.ts:54


protocols

protocols: string[]

Defined in: src/notification.ts:60


status

status: statuses= “closed”

Defined in: src/notification.ts:64


topic

topic: string

Defined in: src/notification.ts:52

Methods

fetchNotificationConnectionInfo

fetchNotificationConnectionInfo(): Promise<NotificationConnectionInfo>

Returns: Promise<NotificationConnectionInfo>

Defined in: src/notification.ts:179


fetchProtocolNegotiationInfo

fetchProtocolNegotiationInfo(): Promise<NegotiationInfo>

Returns: Promise<NegotiationInfo>

Defined in: src/notification.ts:146


setSessionFetch

setSessionFetch(sessionFetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>): void

Parameters:

Name

Type

sessionFetch

(input: RequestInfo, init?: RequestInit) => Promise<Response>

Returns: void

Defined in: src/notification.ts:116


getDefaultSessionFetch

StaticgetDefaultSessionFetch(): Promise<undefined | (input: RequestInfo, init?: RequestInit) => Promise<Response>>

Returns: Promise<undefined | (input: RequestInfo, init?: RequestInit) => Promise<Response>>

Defined in: src/notification.ts:80