Namespace
Namespaces
Default Namespace
Configuration config = new Configuration();
config.setPort(9092);
SocketIOServer server = new SocketIOServer(config);
// default namespace exists implicitly
server.start();Custom Namespace
SocketIOServer server = new SocketIOServer(config);
Namespace chat = server.addNamespace("/chat");
Namespace admin = server.addNamespace("/auth");
server.start();Public Namespace Example (/chat)
/chat)Server
Client
Authenticated Namespace Example (/auth)
/auth)Server
Authorized Client
Unauthorized Client
Last updated
Was this helpful?