You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're working on a web app using Mithril.js and webpack. Currently getting this error: Uncaught TypeError: WebSocketServer is not a constructor when trying
const WebSocketServer = require('rpc-websockets').Server
const server = new WebSocketServer({port, host})
So, we didn't solve this exactly, but we think the answer is pretty simple: we were trying to create a websocket server inside the browser, which is why the option wasn't available.
We're working on a web app using Mithril.js and webpack. Currently getting this error:
Uncaught TypeError: WebSocketServer is not a constructor
when tryingLocally, the rpc-websocket object looks like:
{ Server: [Getter], Client: [Function: Client] }
In the browser, I get:
{__esModule: true, Client: ƒ}
(no Server)The text was updated successfully, but these errors were encountered: