Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] [Server|Client]MessagingEvent Definitions API #61

Open
Vorlias opened this issue Dec 15, 2021 · 1 comment
Open

[RFC] [Server|Client]MessagingEvent Definitions API #61

Vorlias opened this issue Dec 15, 2021 · 1 comment
Labels
Enhancement New feature or request RFC request for comments

Comments

@Vorlias
Copy link
Member

Vorlias commented Dec 15, 2021

ServerMessagingEvent would allow sending messages cross-server to the specified player clients in any server with the matching user id.

This technically existed in 2.1.x, however as it was an undocumented (broken) API I want to revisit it.

  • SendToAllServers and SendToServer is essentially the same in ExperienceBroadcastEvent.
  • The only difference here is the specific SendToPlayer(userId, ...) and `SendToPlayers(userIds[], ...)

ClientMessagingEvent would be the client counter-part listening to this.

I am not sure if this API is useful? It could be for something like guild chat, perhaps :?

There's still the issue here of the client not being able to send these messages directly though so maybe it's better to just leave this sort of stuff as more manual. I don't know if I feel like adding that capability unless there's an explicit handler for that the user must specify somehow.

@Vorlias Vorlias added Unsure Further information is requested Enhancement New feature or request labels Dec 15, 2021
@Vorlias Vorlias changed the title [Server|Client]MessagingEvent Definitions API [RFC] [Server|Client]MessagingEvent Definitions API Dec 15, 2021
@Vorlias Vorlias added RFC request for comments and removed Unsure Further information is requested labels Dec 15, 2021
@Vorlias
Copy link
Member Author

Vorlias commented Dec 15, 2021

EXPERIMENTAL_ExperienceReplicatedEvent - Needs testing, though. Might not function as intended just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request RFC request for comments
Projects
None yet
Development

No branches or pull requests

1 participant