Skip to main content
Bridge.Net replaces raw RegisterNetEvent / TriggerServerEvent. Logical event names are scrambled on the wire and regenerated every restart, and every client→server call carries a single-use, event-bound proof — so executors cannot guess or replay your events. You just use the readable names. On top of that, every handler can declare a payload validator, a rate limit, and a permission node. Validation and rate limiting run before your handler executes.

Server handlers

Bridge.Net.On

Register a fire-and-forget handler for client→server events.

Bridge.Net.OnCallback

Register a request/response handler. Return a single value (or value plus an error handled by your own convention).

Emitting to clients

Client handlers

Callbacks (blocking)

Bridge.Net.Callback blocks until the server responds, so it must run inside a thread.
Bridge.Net.Callback yields. Always call it inside a CreateThread or a command/event callback — never at file top level.

Validation

Bridge.Validate builds composable validators. Use them as the payload of a net handler, or call them directly to guard any untrusted input.
Validate every client→server payload. The net layer enforces the proof and rate limit, but only your validator guarantees the shape of the data your handler trusts.