@objcMembers
open class PusherEvent : NSObject, NSCopying
Undocumented
The name of the channel that the event was triggered on. Not present in events without an associated channel, e.g. “pusher:error” events relating to the connection.
DeclarationSwift
public let channelName: String?
The data that was passed when the event was triggered.
DeclarationSwift
public let data: String?
The ID of the user who triggered the event. Only present in client event on presence channels.
DeclarationSwift
public let userId: String?
A helper function for accessing raw properties from the websocket event. Data returned by this function should not be considered stable and it is recommended that you use the properties of the PusherEvent
instance instead e.g. eventName
, channelName
etc.
Swift
public func property(withKey key: String) -> Any?
Parameters key
The key of the property to be returned
Return ValueThe property, if present
Undocumented
DeclarationSwift
public func copy(with zone: NSZone? = nil) -> Any
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4