Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server to Server RemoteService send heart package which can not refresh the session #17

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Jesse1205
Copy link

@Jesse1205 Jesse1205 commented Jul 2, 2016

private void InitClient() { try { if (_client is SocketRemoteClient) { var client = _client as SocketRemoteClient; RequestParam heartParam = new RequestParam(); heartParam["ActionId"] = (int)ActionEnum.Heartbeat; heartParam["MsgId"] = 0; string post = string.Format("?d={0}", HttpUtility.UrlEncode(heartParam.ToPostString())); client.HeartPacket = Encoding.ASCII.GetBytes(post); } } catch { } }

@Jesse1205 Jesse1205 changed the title Alpha Server to Server RemoteService send heart package which can not refresh the session Jul 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant