Commit 9277c268 by 施晓雨

1

parent 692a465b
...@@ -42,6 +42,7 @@ namespace Test ...@@ -42,6 +42,7 @@ namespace Test
_client.OnException = onException; _client.OnException = onException;
_client.OnHeartbeat = onHeartbeat; _client.OnHeartbeat = onHeartbeat;
_client.Connect(); _client.Connect();
_client.Handlers["test"] = cc;
}, true); }, true);
task.Error((ex)=> { task.Error((ex)=> {
btnConnect.Enabled = true; btnConnect.Enabled = true;
...@@ -52,6 +53,12 @@ namespace Test ...@@ -52,6 +53,12 @@ namespace Test
}, true); }, true);
} }
private void cc(ServerEventsClient source, ServerEventMessage args)
{
throw new NotImplementedException();
}
//连接成功,得到连接相应的信息 //连接成功,得到连接相应的信息
private void onConnected(ServerEventConnect connection) 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