Skip to content

Latest commit

 

History

History
199 lines (136 loc) · 6.84 KB

API.md

File metadata and controls

199 lines (136 loc) · 6.84 KB

API Reference

Table of Contents

WebSocket (preflight class)

No description

Constructor

new(props: WebSocketProps): WebSocket

Properties

Name Type Description
url str No description

Methods

Signature Description
onConnect(handler: inflight (str): void): void No description
onDisconnect(handler: inflight (str): void): void No description
onMessage(handler: inflight (str, str): void): void No description
inflight sendMessage(connectionId: str, message: str): void No description

platform.WebSocket_tfaws (preflight class)

No description

Constructor

new(props: WebSocketProps): WebSocket_tfaws

Properties

Name Type Description
url str No description

Methods

Signature Description
addRoute(handler: Function, routeKey: str): void No description
onConnect(handler: inflight (str): void): void No description
onDisconnect(handler: inflight (str): void): void No description
onMessage(handler: inflight (str, str): void): void No description
inflight sendMessage(connectionId: str, message: str): void No description

platform.WebSocket_sim (preflight class)

No description

Constructor

new(props: WebSocketProps): WebSocket_sim

Properties

Name Type Description
url str No description

Methods

Signature Description
onConnect(handler: inflight (str): void): void No description
onDisconnect(handler: inflight (str): void): void No description
onMessage(handler: inflight (str, str): void): void No description
inflight sendMessage(connectionId: str, message: str): void No description

platform.WebSocket_awscdk (preflight class)

No description

Constructor

new(props: WebSocketProps): WebSocket_awscdk

Properties

Name Type Description
url str No description

Methods

Signature Description
addRoute(handler: Function, routeKey: str): void No description
onConnect(handler: inflight (str): void): void No description
onDisconnect(handler: inflight (str): void): void No description
onMessage(handler: inflight (str, str): void): void No description
inflight sendMessage(connectionId: str, message: str): void No description

platform.aws.IAwsWebSocket (interface)

No description

Properties

No properties

Methods

Signature Description
addRoute(handler: Function, routeKey: str): void No description
onConnect(handler: inflight (str): void): void No description
onDisconnect(handler: inflight (str): void): void No description
onMessage(handler: inflight (str, str): void): void No description
inflight sendMessage(connectionId: str, message: str): void No description

commons.IWebSocket (interface)

No description

Properties

No properties

Methods

Signature Description
onConnect(handler: inflight (str): void): void No description
onDisconnect(handler: inflight (str): void): void No description
onMessage(handler: inflight (str, str): void): void No description
inflight sendMessage(connectionId: str, message: str): void No description

platform.aws.WebSocketAwsRequest (struct)

No description

Properties

Name Type Description
body str No description
requestContext WebSocketAwsRequestContext No description

platform.aws.WebSocketAwsRequestContext (struct)

No description

Properties

Name Type Description
connectionId str No description
routeKey str No description

platform.aws.WebSocketAwsResponse (struct)

No description

Properties

Name Type Description
body str? No description
statusCode num No description

commons.WebSocketProps (struct)

No description

Properties

Name Type Description
name str No description
stageName str? No description