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

Make the `info` value in CentrifugePublicationEvent public #90

Closed YoavGro closed 12 months ago

YoavGro commented 12 months ago

Hi,

I'm using the swift SDK of Centerfuge and was wondering why the CentrifugePublicationEvent's info value is not public Currently it looks like this

public struct CentrifugePublicationEvent {
    public var data: Data
    public var offset: UInt64
    public var tags: [String: String]
    var info: CentrifugeClientInfo?
}

Thanks

FZambia commented 12 months ago

Hello @YoavGro

Not sure why, seems like a miss - do you want to send PR? Also the same fix required for CentrifugeServerPublicationEvent

YoavGro commented 12 months ago

Sure, here is the PR

FZambia commented 12 months ago

@YoavGro many thanks! Released as part of 0.6.1

YoavGro commented 12 months ago

Amazing thanks!