Skip to content

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