Skip to content

How to send message from server to client? #59

Closed Answered by arthuro555
SKI79 asked this question in Q&A
Discussion options

You must be logged in to vote

As explained in the docs, the way communication between server and client works is that clients send messages to the server, the server ingests messages, and responds to all clients with new server state.

You can use a State variable to send any arbitrary data back to your clients. Since stats and player numbers are player specific, you'll want to use a PlayerState variable for that state to be only sent to the players it concerns..

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SKI79
Comment options

Answer selected by SKI79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants