@automerge/automerge-repo-network-messagechannel
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,8 @@ | ||
/** | ||
* A `NetworkAdapter` which uses [`MessageChannel`](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel) | ||
* to communicate with other peers. This is useful for communicating between | ||
* browser tabs and web workers (including shared workers). | ||
* | ||
* @module | ||
*/ | ||
import { type Message, NetworkAdapter, type PeerId } from "@automerge/automerge-repo"; | ||
@@ -6,2 +13,3 @@ import { MessagePortRef } from "./MessagePortRef.js"; | ||
channels: {}; | ||
/** @hidden */ | ||
messagePortRef: MessagePortRef; | ||
@@ -14,3 +22,3 @@ constructor(messagePort: MessagePort, config?: MessageChannelNetworkAdapterConfig); | ||
} | ||
interface MessageChannelNetworkAdapterConfig { | ||
export interface MessageChannelNetworkAdapterConfig { | ||
/** | ||
@@ -26,3 +34,2 @@ * This is an optional parameter to use a weak ref to reference the message port that is passed to | ||
} | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,1 +1,8 @@ | ||
/** | ||
* A `NetworkAdapter` which uses [`MessageChannel`](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel) | ||
* to communicate with other peers. This is useful for communicating between | ||
* browser tabs and web workers (including shared workers). | ||
* | ||
* @module | ||
*/ | ||
import { NetworkAdapter, } from "@automerge/automerge-repo"; | ||
@@ -8,2 +15,3 @@ import { StrongMessagePortRef } from "./StrongMessagePortRef.js"; | ||
channels = {}; | ||
/** @hidden */ | ||
messagePortRef; | ||
@@ -10,0 +18,0 @@ #startupComplete = false; |
{ | ||
"name": "@automerge/automerge-repo-network-messagechannel", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "MessageChannel network adapter for Automerge Repo", | ||
@@ -17,3 +17,3 @@ "repository": "https://github.com/automerge/automerge-repo", | ||
"dependencies": { | ||
"@automerge/automerge-repo": "^1.0.2" | ||
"@automerge/automerge-repo": "^1.0.3" | ||
}, | ||
@@ -34,3 +34,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "c72b9ec33c3a1f7f39ad20cb4fa0d766afe42158" | ||
"gitHead": "4f3391cd33cd0cabfebde48dbd56749ddb6922da" | ||
} |
@@ -0,1 +1,8 @@ | ||
/** | ||
* A `NetworkAdapter` which uses [`MessageChannel`](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel) | ||
* to communicate with other peers. This is useful for communicating between | ||
* browser tabs and web workers (including shared workers). | ||
* | ||
* @module | ||
*/ | ||
import { | ||
@@ -16,2 +23,3 @@ type Message, | ||
channels = {} | ||
/** @hidden */ | ||
messagePortRef: MessagePortRef | ||
@@ -130,3 +138,3 @@ #startupComplete = false | ||
interface MessageChannelNetworkAdapterConfig { | ||
export interface MessageChannelNetworkAdapterConfig { | ||
/** | ||
@@ -133,0 +141,0 @@ * This is an optional parameter to use a weak ref to reference the message port that is passed to |
Sorry, the diff of this file is not supported yet
21142
23
524