Question about the Photon3DotNet dll
Options
Comments
-
Hi, @mjoye
this is for a case when you send messages instead of Operations. LoadBalancing does not support this. it is useful if you develop something your self.
A message is an object serializable by photon. it could be string or byte[]. this will allow to use external serializers like protobuf
best,
ilya1 -
Do you have any examples from server and client code that uses this? Why does this method appear in the Unity3d dll and only appears in the DotNet dll? It sound like to could be useful since we are looking at protobuf and MessagePak, and this could be a feature that we can use0
-
I am currently am writing my own code and hosting it myself.0
-
bad new that OnMessage handler is not accessible on the server side
best,
ilya0 -
@JohnTube I have download the PUN2/Voice2 asset package from the unity store. It comes with the Photon3Unity3D.dll with the version 4.1.2.1 and it lacks the method OnMessage on the IPeerListener interface. The only methods that are on the interface are:
OnEvent
DebugReturn
OnOperationResponse
OnStatusChange0 -
Hi @mjoye,
Sorry for the delay, I miss some discussions sometimes.
You are right, OnMessage is not in the Photon3Unity3D.dll.
Although all C#/Mono/.Net lib. flavors, including Unity's, share the same source code they are built differently.
I can see multiple reasons why that method was excluded.
Do you need it?0 -
I think it was excluded because:
- the same DLL was used in old projects that did not support raw message exchange (Photon Server v3)
- most of our customers don't need it or don't use it
- nobody asked for it before
So just to make sure, you are using the raw message exchange feature yourself?
I will see if we can release a new Unity lib (Photon3Unity3D.dll) that has it early next year.0 -
Yes we incorporating the raw message exchange into our game.0
-
to use messages you do need support on both sides client and server. Current server sdk does not support this.mjoye said:
best,
ilya0