Skip to content

Networking

Vertexia networking is strictly Client-Server. Clients do not trust other clients. RemoteEvents act as the explicit bridge for sending custom payloads back and forth between the security boundary.

RemoteEvent

A lightweight node injected into the Workspace. Scripts and LocalScripts look up this node by Name and bind to its signals.

Server-Side Listening

When a client fires the server, the server validates the origin and passes the explicit player instance as the first argument, followed by the payload.

API Methods

  • TargetEvent:FireServer(Args): Invoked by a LocalScript to send data to the server.
  • TargetEvent:FireClient(TargetPlayer, Args): Invoked by a Script to target a specific connected client.
  • TargetEvent:FireAllClients(Args): Invoked by a Script to broadcast data to every connected peer.

Signals

  • OnServerEvent: Listened to by Script.
  • OnClientEvent: Listened to by LocalScript.