Net.Definitions Namespace
This namespace is for the Definitions feature.
Create(definitions)#
Function
- Parameters
remotesAn object of remote definitions. See definitions for usage.
- Returns a DefinitionBuilders
Example
Function<Server>(...)#
Definition function for creating a FunctionDefinition
Event<ServerArgs, ClientArgs>(...)#
Definition function for creating an EventDefinition
AsyncFunction<Server, Client>(...)#
Definition function for creating an AsyncDefinition
Net.Middleware#
This namespace contains built-in middleware for RbxNet.
RateLimit(limit)#
RuntimeTypeCheck(...typeCheckers)#
DefinitionsCreateResult<T>#
Contains the definition builders for a given definition (returned using Create in Net.Definitions)
Server#
A ServerDefinitionBuilder object.
Client#
A ClientDefinitionBuilder object.
ServerDefinitionBuilder<T>#
Contains all the definition builders for server-side events and functions.
Create(name)#
Will get the specified event by name, and return it. The returned object will be the type provided in the definition.
ConnectEvent(name, callback)#
Similar to Create but only works on events, and is pretty much a shortcut for Create(name).Connect(callback)
ClientDefinitionBuilder<T>#
Contains all the definition builders for server-side events and functions.
Get(name)#
Will get the specified event by name, and return it. The returned object will be the type provided in the definition.
Gets the specified remote definition and gets the client version of the event/function/asyncfunction
ConnectEvent(name, callback)#
Similar to Get but only works on events, and is pretty much a shortcut for Create(name).Connect(callback)