Document SocketAnyEvent

This commit is contained in:
Erik 2017-05-05 23:14:48 -04:00
parent 08c6186fe4
commit a8ee018a16
No known key found for this signature in database
GPG Key ID: 4930B7C5FBC1A69D

View File

@ -24,9 +24,17 @@
import Foundation import Foundation
/// Represents some event that was received.
public final class SocketAnyEvent : NSObject { public final class SocketAnyEvent : NSObject {
// MARK: Properties
/// The event name.
public let event: String public let event: String
/// The data items for this event.
public let items: [Any]? public let items: [Any]?
/// The description of this event.
override public var description: String { override public var description: String {
return "SocketAnyEvent: Event: \(event) items: \(String(describing: items))" return "SocketAnyEvent: Event: \(event) items: \(String(describing: items))"
} }