Commit 6f1989d2 by 施晓雨
parents 0e8cb97c 7f9246ce
......@@ -42,6 +42,7 @@ namespace Test
_client.OnException = onException;
_client.OnHeartbeat = onHeartbeat;
_client.Connect();
_client.Handlers["test"] = cc;
}, true);
task.Error((ex)=> {
btnConnect.Enabled = true;
......@@ -52,6 +53,12 @@ namespace Test
}, true);
}
private void cc(ServerEventsClient source, ServerEventMessage args)
{
throw new NotImplementedException();
}
//连接成功,得到连接相应的信息
private void onConnected(ServerEventConnect connection)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment