From 8ceb5257ba96bf1535ca25caf455b07f5662b23b Mon Sep 17 00:00:00 2001 From: khtsly Date: Mon, 16 Feb 2026 17:52:49 +0700 Subject: [PATCH] chore(docs): update server.md --- docs/api/1.1/server.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/api/1.1/server.md b/docs/api/1.1/server.md index 50e2123..24a0122 100644 --- a/docs/api/1.1/server.md +++ b/docs/api/1.1/server.md @@ -8,6 +8,31 @@ For Server-sided operations. local Server = Warp.Server() ``` +## `.reg_namespaces` + +Register namespaces to ensure all of the namespaces is earlier being registered on the server to prevent any unexpected issues on the client. +but this is optional, you may have to use this if you had a problem with identifier namespace on client. + +::: code-group +```luau [Variable] +( + namespaces: { string }, +) -> Connection +``` + +```luau [Example] +Server.reg_namespaces({ + "ServerNotify", + "ServerMessage", + "WelcomeMessage", + "Broadcast", + "DataReplication", + "RequestData", + "Update" +}) +``` +::: + ## `.Connect` Connect to an event to receive incoming data from clients.