Coder Social home page Coder Social logo

Comments (8)

Vorlias avatar Vorlias commented on May 23, 2024

I'm also contemplating breaking down AsyncFunction into Server/Client too for the same sort of type isolation. Function will stay the same as it only works one way anyway.

from rbx-net.

OverHash avatar OverHash commented on May 23, 2024

I support the motion to isolate the events like this, but am dubious of the naming. Adding Client* implies that the event is only to be used on the client. Maybe a different prefix should be found.

Additionally, how would you define a bidirectional remote? Or are you going with the idea to not allow that behaviour?

from rbx-net.

Vorlias avatar Vorlias commented on May 23, 2024

I support the motion to isolate the events like this, but am dubious of the naming. Adding Client* implies that the event is only to be used on the client. Maybe a different prefix should be found.

Additionally, how would you define a bidirectional remote? Or are you going with the idea to not allow that behaviour?

Do you have an example of a bidirectional remote that wouldn't be achievable with AsyncFunction ?

Also yeah the naming I'm still iffy about myself, I am wanting to find alternatives - could do things like ClientToServerEvent and ServerToClientEvent or something, but still don't know about that.

from rbx-net.

OverHash avatar OverHash commented on May 23, 2024

An example of a bidirectional event that I use in my game is when someone adds/removes an item from trading. The client will tell the server, and then the server will fire off to the other player.

It would be good to support these use cases.

Having verbose names like ClientToServerEvent is not a bad idea.

from rbx-net.

Vorlias avatar Vorlias commented on May 23, 2024

An example of a bidirectional event that I use in my game is when someone adds/removes an item from trading. The client will tell the server, and then the server will fire off to the other player.

It would be good to support these use cases.

Having verbose names like ClientToServerEvent is not a bad idea.

Could have BidirectionalEvent perhaps, since that's more descriptive for that?

from rbx-net.

OverHash avatar OverHash commented on May 23, 2024

Yep, thought that was a good name too.

from rbx-net.

Vorlias avatar Vorlias commented on May 23, 2024

Members added:
Net.Definitions.BidirectionalEvent
Net.Definitions.ServerToClientEvent
Net.Definitions.ClientToServerEvent
Net.Definitions.ServerAsyncFunction
Net.Definitions.ServerFunction
Net.Definitions.ClientAsyncFunction

Deprecated (and will be removed in 2.2):
Net.Definitions.Event
Net.Definitions.Function
Net.Definitions.AsyncFunction

from rbx-net.

Vorlias avatar Vorlias commented on May 23, 2024

I did think about prefixing them with Define but it might make those names too long.

from rbx-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.