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 serverauth— Required. Must contain at leastauth.userwith anid. Ravex uses this to populatesocket.data.user. Real authentication is your responsibility — see the Authentication guide.
See the full options in the Client Quick Start and source types.