Skip to content

actionToWsEvent()

@blobs/sdk v0.1.0


@blobs/sdk / transport / actionToWsEvent

actionToWsEvent(action): string

Defined in: transport/RequestAction.ts:83

Maps a RequestAction to the WebSocket event/message type used on the wire.

Parameters

action

RequestAction

Logical operation.

Returns

string

The WebSocket event name (e.g. list, auth:login); defaults to get if unmapped.