Skip to content

@statesync/persistence


@statesync/persistence / isBroadcastChannelSupported

Function: isBroadcastChannelSupported() ​

ts
function isBroadcastChannelSupported(): boolean;

Defined in: persistence/src/cross-tab.ts:156

Checks whether the BroadcastChannel API is available in the current environment.

Returns false in Node.js, Web Workers without BroadcastChannel support, and other restricted environments.

Returns ​

boolean

true if BroadcastChannel is defined globally.

Released under the MIT License.