#Is there a way to get the peer_id from a received packet?

1 messages · Page 1 of 1 (latest)

fossil verge
#

I'm trying to sort clients into rooms, but cannot seem to figure out how to tell which clients are the ones sending in a message when I receive a packet. Am I supposed to tell the client their peer_id so they can communicate back? or am I suppoed to be able to see which client it is somewhere?

Any help would be greatly appreciated.

long hill
#

i think it should be multiplayer.get_remote_sender_id() in the rpc function

fossil verge
#

I'm using WebSockets so that method doesn't exist

#

@long hill