Skip to content

Commit

Permalink
update jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Jul 11, 2023
1 parent 6862978 commit ea27aa0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/resources/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class Websocket {
}

/**
* Cloud storage bucket resource for large file storage.
* Websocket resource for bi-di HTTP communication.
*/
export class WebsocketResource extends Base<any> {
private readonly wsClient: WsClient;
Expand All @@ -76,7 +76,7 @@ export class WebsocketResource extends Base<any> {
}

/**
* Register this bucket as a required resource for the calling function/container.
* Register this websocket as a required resource for the calling function/container.
*
* @returns a promise that resolves when the registration is complete
*/
Expand Down Expand Up @@ -137,9 +137,9 @@ export class WebsocketResource extends Base<any> {
}

/**
* Retrieves the Invocation URL of this API at runtime.
* Retrieves the Invocation URL of this Websocket at runtime.
*
* @returns Promise that returns the URL of this API
* @returns Promise that returns the URL of this Websocket
*/
async url(): Promise<string> {
const {
Expand All @@ -150,10 +150,9 @@ export class WebsocketResource extends Base<any> {
}

/**
* Register and start a bucket notification handler that will be called for all matching notification events on this bucket
* Register and start a websocket event handler that will be called for all matching events on this websocket
*
* @param notificationType the notification type that should trigger the middleware, either 'write' or 'delete'
* @param notificationPrefixFilter the file name prefix that files must match to trigger a notification
* @param eventType the notification type that should trigger the middleware, either 'connect', 'disconnect' or 'message'
* @param middleware handler middleware which will be run for every incoming event
* @returns Promise which resolves when the handler server terminates
*/
Expand Down

0 comments on commit ea27aa0

Please sign in to comment.