Skip to content

Multiple WASMs running concurrently. #33

@EliCDavis

Description

@EliCDavis

Is your feature request related to a problem? Please describe.

I need to route different requests to different instances of the same WASM based on the URL. This is almost achievable with this package, except for the use of the JavaScript variable wasmhttp. Multiple WASMs fight the use of this

Describe the solution you'd like

The serve command needs to register itself against a manager that can handle multiple WASMs.

Additional context

Open to other ideas on how to run multiple instances of the same WASM. This has to be in the same service worker.

Bonus points if users of the library within the service worker can designate the IDs for the different WASM instances, and the library auto spawns a new instance of the WASM when there's no matching WASM with that ID

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions