Support => TNet 3 Support => Topic started by: Noi14 on February 20, 2014, 07:50:16 AM
Title: Recovery data channel
Post by: Noi14 on February 20, 2014, 07:50:16 AM
hi, I need to set same values like data of current channel and to recovery where I want in order to update. Now I'm able to set using: TNManager.client.BeginSend(Packet.RequestSetChannelData).Write(json_string); TNManager.client.EndSend();
But I don't understand how to recover date of current channel from the server
Title: Re: Recovery data channel
Post by: ArenMook on February 20, 2014, 01:09:18 PM
You don't need to send that custom packet. Just modify TNManager.channelData.
TNManager.channelData="abc123";
Debug.Log(TNManager.channelData);
Title: Re: Recovery data channel
Post by: Noi14 on February 20, 2014, 03:21:35 PM
Thank you for your reply, I think I don't understrand what should the custom packet used for. Can you tell me in which cases I have to use them?
Title: Re: Recovery data channel
Post by: ArenMook on February 21, 2014, 11:23:49 AM
Custom packets? You would add new packets if you wanted new functionality on the server that doesn't come with TNet, such as requesting a list of players in a specific channel without joining the channel first.
Title: Re: Recovery data channel
Post by: Noi14 on February 21, 2014, 04:46:23 PM