Server side custom types problem

Options
oman
oman
edited June 2012 in Photon Server
How to Register custom types on the server side like on the client side with PhotonPeer's RegisterType ? any method or not ? I registered a custom type on the client and send it to the sever, the sending operation is successful, but the server can't receive the operation, what's the matter?

Comments

  • BenStahl
    Options
    On the server side cutom operations are registered with Photon.SocketServer.Protocol.TryRegisterCustomType.
    If you don't need to work with the cutoms operations on the server side and only want to send them to other clients you can set the AllowRawCustomValues property of the Photon.SocketServer.Protocol classs to true. Custom operations then will be deserialized an serialized but are not converted to a cutom class.