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

Make the `info` value in CentrifugePublicationEvent public #90

Closed YoavGro closed 1 year ago

YoavGro commented 1 year 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 1 year 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 1 year ago

Sure, here is the PR

FZambia commented 1 year ago

@YoavGro many thanks! Released as part of 0.6.1

YoavGro commented 1 year ago

Amazing thanks!