roblox-aurora / rbx-net

Advanced multi-language networking framework for Roblox
https://rbxnet.australis.dev/
MIT License
93 stars 12 forks source link

Server definitions should automatically generate remotes on server when accessed #57

Closed Vorlias closed 2 years ago

Vorlias commented 3 years ago

At the moment remotes need to be manually created on the server for them to be accessible on the client.

This may lead to an issue where you can see that a remote is accessible on a client, but it hasn't been created on the server. This would fix said issue by ensuring the remote is at least created, even if it's not hooked into yet.

Vorlias commented 3 years ago

An example breaking case this would fix:

function exampleCall(somePlayer: Player) {
    Remotes.Server.Create("Example").SendToPlayer(somePlayer, "Example message");
}

The client listener would error due to this remote not existing before it's called by the server.

Vorlias commented 3 years ago

Being addressed in https://github.com/roblox-aurora/rbx-net/tree/v2.2

Vorlias commented 2 years ago

Being this could be a breaking change, I'm likely going to defer it to v3.0. At least then has the options to use it.