Ravex

Configuration & Initialization

All options available when creating a ChatClient.

Configuration & Initialization

const client = new ChatClient({
  url: "http://localhost:3000",
  namespace: "/",
  auth: { user: currentUser },
  transports: ["websocket", "polling"],
  withCredentials: true,
  autoConnect: true,
});

Key Options

  • url — Base URL of your ravex server
  • authRequired. Must contain at least auth.user with an id. Ravex uses this to populate socket.data.user. Real authentication is your responsibility — see the Authentication guide.

See the full options in the Client Quick Start and source types.

On this page