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
Echo instance, channel, event and POST target; see EchoTransportOptions.
Returns
A BridgeTransport; send rejects on network failure or a non-2xx status, and close() stops listening on the channel.