Lines Matching refs:uuid
54 async getOrCreate(type, uuid, onmessage=null) { argument
58 … let url = `${protocol}://{{host}}:${port}/msg_channel?uuid=${uuid}&direction=${type}`;
68 if (this.readSockets.has(uuid)) {
73 socket.addEventListener("close", () => this.readSockets.delete(uuid));
74 this.readSockets.set(uuid, socket);
80 if (this.writeSockets.has(uuid)) {
81 [socket, count] = this.writeSockets.get(uuid);
88 socket.addEventListener("close", () => this.writeSockets.delete(uuid));
89 this.writeSockets.set(uuid, [socket, count]);
96 async close(type, uuid) { argument
98 const data = target.get(uuid);
110 target.set(uuid, [socket, count]);
114 target.delete(uuid);
142 constructor(uuid) { argument
144 this.uuid = uuid;
166 this.socket = await socketCache.getOrCreate(this.type, this.uuid, onmessage);
175 await socketCache.close(this.type, this.uuid);
287 constructor(uuid) { argument
288 if (recvChannelsCreated.has(uuid)) {
289 throw new Error(`Already created RecvChannel with id ${uuid}`);
291 super(uuid);
330 let uuid = createUuid();
331 let recvChannel = new RecvChannel(uuid);
332 let sendChannel = new SendChannel(uuid);
344 let uuid = new URLSearchParams(location.search).get("uuid");
345 if (!uuid) {
348 return new RemoteGlobalCommandRecvChannel(new RecvChannel(uuid));
385 this.uuid = recvChannel.uuid;
524 this.uuid = dest;
528 this.uuid = dest.uuid;
836 serialized.value = item.uuid;