Skip to content

toolmark-monorepo / @toolmark/core/bridge/echo / echoTransport

Function: echoTransport() ​

echoTransport(o): BridgeTransport

Defined in: packages/core/src/bridge/echo.ts:45

Laravel Echo transport: agent messages arrive on an authorized private channel (D20) and page messages are POSTed as JSON with credentials: 'same-origin'. A broadcast payload may be the message itself or { message }.

Parameters ​

o ​

EchoTransportOptions

Echo instance, channel, event and POST target; see EchoTransportOptions.

Returns ​

BridgeTransport

A BridgeTransport; send rejects on network failure or a non-2xx status, and close() stops listening on the channel.