export-runtime 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/handler.js +2 -1
- package/package.json +1 -1
package/handler.js
CHANGED
|
@@ -339,7 +339,8 @@ export const createHandler = (moduleMap, generatedTypes, minifiedCore, coreId, m
|
|
|
339
339
|
server.accept();
|
|
340
340
|
|
|
341
341
|
if (isShared && env?.SHARED_EXPORT) {
|
|
342
|
-
|
|
342
|
+
// ?shared or ?shared= uses default room, ?shared=<id> uses specified room
|
|
343
|
+
const room = url.searchParams.get("shared") || "default";
|
|
343
344
|
const stub = env.SHARED_EXPORT.get(env.SHARED_EXPORT.idFromName(room));
|
|
344
345
|
wireWebSocket(server, stub, env);
|
|
345
346
|
} else {
|