centrifugal / centrifuge-swift

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

Why it doesn't work with protocol=json #76

Closed Alexborodalex closed 1 year ago

FZambia commented 1 year ago

Hello, @Alexborodalex

JSON protocol format is not implemented by centrifuge-swift. It only works over Protobuf. See https://centrifugal.dev/docs/transports/client_sdk#protobuf-and-json-formats-in-sdks. Though you can still use JSON payloads here, since JSON is just a sequence of bytes and may be transmitted over Protobuf - example.

Is your question caused by some problem you came across?