Currently WebGL builds are not supported because SpacetimeDB uses threads to process incoming network messages. I think there are several solutions here:
- We could use
Task everywhere instead of threads - we have to determine the performance impact of doing this. It needs to be tested against BitCraft.
- We could use
#ifdef to only use threads for non-webgl platforms and then use Task instead when we are building for WebGL.
First let's just try #1 and then if that doesn't work well then let's go with #2.
Steps to move this forward
Currently WebGL builds are not supported because SpacetimeDB uses threads to process incoming network messages. I think there are several solutions here:
Taskeverywhere instead of threads - we have to determine the performance impact of doing this. It needs to be tested against BitCraft.#ifdefto only use threads for non-webgl platforms and then useTaskinstead when we are building for WebGL.First let's just try #1 and then if that doesn't work well then let's go with #2.
Steps to move this forward
browserplatform #274