我使用了xsockets一段时间后,我得到了非常频繁的消息。
System.FormatException: Unrecognized Guid format.
at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
at System.Guid.Parse(String input)
at XSockets.Protocol.XSocketProtocol.<>c__DisplayClass22.<Heartbeat>b__1f(Object o, ControlArgs args)
at XSockets.Protocol.XSocketProtocol.<SetFrameHandler>b__b(IList`1 payload, FrameType op)
这些东西有问题吗?
更新
当我删除以下代码时,抛出没有异常。
public override void OnOpened()
{
this.ProtocolInstance.Heartbeat(notifyAction: (reason) => { Console.WriteLine("Heart beat :" + reason); });
}