mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
* copy and format * update `SerializedScriptValue.cpp` * use `expect().fail()` in message channel tests * rename `BroadcastChannelIdentifier.h` * copy registries * progress and tests * cleanup * worker and broadcast channel test * `BroadcastChannel` ref and unref * `MessagePort` ref, unref, and hasRef * remove `SecurityContext.cpp/h` * add types
4 lines
96 B
TypeScript
4 lines
96 B
TypeScript
const bc = new BroadcastChannel("hello test");
|
|
bc.postMessage("hello from worker");
|
|
bc.close();
|