Debian Codegraph @

wasm/browser/src/utils/message-port-state.js

raw
1 /**
2 * @constructor
3 */
4 export function MessagePortState() {}
5
6 /**
7 * @type {boolean}
8 */
9 MessagePortState.prototype.ready = false;
10
11 /**
12 * @type {Function|undefined}
13 */
14 MessagePortState.prototype.port = undefined;
15
16 /**
17 * @type {Function}
18 */
19 MessagePortState.prototype.post = () => {};
20 /**
21 * @type {Function}
22 */
23 MessagePortState.prototype.broadcastPlayState = () => {};
24 /**
25 * @type {string|undefined}
26 */
27 MessagePortState.prototype.workerState = undefined;
28 /**
29 * @type {string|undefined}
30 */
31 MessagePortState.prototype.vanillaWorkerState = undefined;
32
33 export default MessagePortState;