Version: 2.0.0

Net.Client Namespace

This contains all the client-related code relating to Net

Event#

class ClientEvent<ConnectArgs, CallArgs> {
constructor(name: string);
SendToServer(...args: CallArguments): void;
Connect(callback: (...args: ConnectArgs) => void): RBXScriptConnection;
}

SendToServer#

Connect#

Function#

class ClientFunction<CallArgs, ServerReturnType> {
constructor(name: string);
CallServerAsync(...args: CallArgs): Promise<ServerReturnType>;
}

CallServerAsync#

AsyncFunction#

class ClientAsyncFunction<CallbackArgs, CallArgs, ServerReturnType> {
constructor(name: string);
CallServerAsync(...args: CallArgs): Promise<ServerReturnType>;
SetCallback(callback: (...args: CallbackArgs) => any): void;
SetCallTimeout(timeout: number): void;
GetCallTimeout(): number;
}

CallServerAsync#

SetCallback#

SetCallTimeout#

GetCalllTimeout#

CrossServerEvent#

class CrossServerEvent {
constructor(name: string);
Connect(callback: (...args: unknown[]) => void): void;
}

Connect#