MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Messages brodcasted lost with Sharing Service

Open fraspadafora opened this issue 9 years ago • 4 comments

Hi all, I'm using the Sharing Service with CustomMessage to create a Master/Slave configuration between 2 hololens.

It's working fine but I have one problem, in some moments, specially when the slave joins the room, the master sends lot of messages and someone get lost and don't arrive to the slave. If I put a Log before sending messages all works fine because the log slows the sending process.

I'm using the following method:

serverConnection.Broadcast(
  msg,
  MessagePriority.Immediate,
  MessageReliability.ReliableOrdered,
  MessageChannel.Avatar);

Anyone has an idea of how to solve the problem?

Thank you.

fraspadafora avatar Jul 14 '17 18:07 fraspadafora

Shot in the dark here, but try making sure there's a connection between the two before sending messages?

StephenHodgson avatar Jul 26 '17 22:07 StephenHodgson

Hi fraspadafora,

I wonder how you achieve the master/slave configuration. Do you manually assign the priority to each HoloLens or have some automatic solution like "the first one join the session will be the master"? Would you share your idea to me? Thanks!

DKandrew avatar Jul 28 '17 15:07 DKandrew

Sounds like you aren't reading/writing all your bits in the right order

StephenHodgson avatar Oct 28 '17 01:10 StephenHodgson

Please reopen if your question was not answered.

NeerajW avatar Feb 14 '18 22:02 NeerajW