Fixes #22684.
Webassembly is client-only for obvious reasons. Other platforms support both client and server using libwebsockets.