centrifugal / centrifuge-swift

Swift client SDK for bidirectional real-time communication with Centrifugo and Centrifuge-based server over WebSocket
MIT License
49 stars 44 forks source link

Compatibility with SwiftProtobuf 1.27.0 and older versions #102

Closed FZambia closed 4 months ago

FZambia commented 4 months ago

Relates #101

SwiftProtobuf changed the behaviour and now returns noBytesAvailable error at the end of stream. Here we become independent from SwiftProtobuf 's BinaryDelimited.parse when decoding varint-delimited messages. It works on old versions and new version.