toolmark-monorepo / @toolmark/core/bridge/echo / EchoTransportOptions
Interface: EchoTransportOptions
Defined in: packages/core/src/bridge/echo.ts:19
Options for echoTransport.
Properties
channel
channel:
string
Defined in: packages/core/src/bridge/echo.ts:23
Private channel name (per user and conversation, §12.2); joined with echo.private.
echo
echo:
EchoLike
Defined in: packages/core/src/bridge/echo.ts:21
The app's Laravel Echo instance.
event?
optionalevent?:string
Defined in: packages/core/src/bridge/echo.ts:25
Broadcast event name (default '.toolmark.message').
headers?
optionalheaders?: () =>Record<string,string>
Defined in: packages/core/src/bridge/echo.ts:32
Extra request headers, read on every send (e.g. a CSRF token). The fixed Content-Type, Accept and X-Requested-With headers override anything this returns.
Returns
Record<string, string>
postUrl
postUrl:
string
Defined in: packages/core/src/bridge/echo.ts:27
URL the page POSTs its messages to (same origin; cookies sent).