// Setup a network with a WebSocket client constnet = newNetwork({ name:'name-of-your-app-or-network', transports: [ newWebSocketClientTransport({ // URL to the websocket on the server url:'ws://localhost:7000', // If using outside a browser, define how a WebSocket is created factory:url=>newWebSocket(url), // Use anonymous authentication authentication: [ newAnonymousAuth() ] }) ] });
WebSocket client-side transport that joins a Network by connecting to a websocket server.