mikolalysenko / mudb

Low latency state replication for the web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade uws

hediyi opened this issue · comments

since the old uws package is no longer maintained, and the new one doesn't provide a WebSocket binding, on client side I'll switch to importing ws instead when WebSocket support is missing.

when there is no WebSockets support in the environment, might be better to let users to inject a client constructor instead

Since the old uws is no longer maintained, and the new one always uses an internal HTTP/S server. We decided to keep the web socket around for people who need an external HTTP/S server, and switch it to using ws instead. And add another uws socket for uws users.