@@ -86,7 +86,6 @@ protected override void PackToCore(MsgPack.Packer packer, IO.Ably.Types.Protocol
8686 objectTree . ChannelSerial . IsNotEmpty ( ) ,
8787 objectTree . ConnectionDetails != null ,
8888 objectTree . ConnectionId . IsNotEmpty ( ) ,
89- objectTree . ConnectionSerial != null ,
9089 objectTree . Count != null ,
9190 objectTree . Error != null ,
9291 objectTree . Flags != null ,
@@ -119,11 +118,6 @@ protected override void PackToCore(MsgPack.Packer packer, IO.Ably.Types.Protocol
119118 this . _serializer0 . PackTo ( packer , "connectionId" ) ;
120119 this . _serializer0 . PackTo ( packer , objectTree . ConnectionId ) ;
121120 }
122- if ( objectTree . ConnectionSerial != null )
123- {
124- this . _serializer0 . PackTo ( packer , "connectionSerial" ) ;
125- this . _serializer3 . PackTo ( packer , objectTree . ConnectionSerial ) ;
126- }
127121 if ( objectTree . Count != null )
128122 {
129123 this . _serializer0 . PackTo ( packer , "count" ) ;
@@ -409,15 +403,9 @@ protected override IO.Ably.Types.ProtocolMessage UnpackFromCore(MsgPack.Unpacker
409403 {
410404 if ( ( key == "connectionSerial" ) )
411405 {
412- System . Nullable < long > nullable21 = default ( System . Nullable < long > ) ;
413- nullable21 =
414- MsgPack . Serialization . UnpackHelpers . UnpackNullableInt64Value (
415- unpacker , typeof ( IO . Ably . Types . ProtocolMessage ) ,
416- "System.Nullable`1[System.Int64] connectionSerial" ) ;
417- if ( nullable21 . HasValue )
418- {
419- result . ConnectionSerial = nullable21 ;
420- }
406+ // ConnectionSerial was removed in PR #1199
407+ // Skip this field if present in older messages
408+ unpacker . Skip ( ) ;
421409 }
422410 else
423411 {
@@ -569,7 +557,6 @@ protected override IO.Ably.Types.ProtocolMessage UnpackFromCore(MsgPack.Unpacker
569557 }
570558 }
571559 }
572-
573560 }
574561 }
575562 }
@@ -595,4 +582,4 @@ private static T @__Conditional<T>(bool condition, T whenTrue, T whenFalse)
595582 }
596583}
597584#pragma warning restore SA1600 // Elements should be documented
598- #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
585+ #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
0 commit comments