centrifugal / centrifuge-swift

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

Compatibility with SwiftProtobuf 1.27.0 and older versions #102

Closed FZambia closed 1 month ago

FZambia commented 1 month 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.