couchbase-lite-core
couchbase-lite-core copied to clipboard
Merged blaugold's WASM branch, plus fixes
Cherry-picked @blaugold 's branch that adds WASM support via emscripten. Made some changes to get it to build again. This depends on the emscripten support in Fleece, currently https://github.com/couchbase/fleece/pull/232
- C4Tests passes, although the threading test is painfully slow (takes at least 10 minutes to run!)
- CppTests has 3 failures.
I chose to disable all of the socket and listener code -- BuiltInWebSocket, etc. It doesn't make sense to have code that uses custom TCP sockets in a library targeted at web browsers. Instead the hypothetical JS platform code would use the C4Socket API to bridge to the JS WebSocket class, the same way the other (non-C) platforms do.