Notification in VStudio: "PhotonPeer is obsolete"

Options
Fratyr
edited June 2012 in Photon Server
Hello,

Anyone knows what is this notification I see when creating a new instance of PhotonPeer: http://i45.tinypic.com/2wq8gtf.jpg ?
Anything I should bother about in future or no?

Thanks

Comments

  • Actually the warning message is clear if you read carefully. That constructor is obsolete and may not be in next versions of the Photon you should use same constructor with ConnectionProtocol property. Your constructor should be like this;
    var peer = new PhotonPeer(listener, ConnectionProtocol.Udp);
    
  • Fratyr
    Options
    Oh.. I'm sorry for my stupidity, still learning things.

    Thanks a lot !
  • Tobias
    Options
    Thanks, Herhangi. Good catch :)