tweaks
This commit is contained in:
parent
bfa967cc2a
commit
13718414da
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
@objc public class SocketAnyEvent {
|
@objc public final class SocketAnyEvent {
|
||||||
public let event:String!
|
public let event:String!
|
||||||
public var items:[AnyObject]?
|
public var items:[AnyObject]?
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ extension String {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SocketEngine: NSObject, WebSocketDelegate {
|
public final class SocketEngine: NSObject, WebSocketDelegate {
|
||||||
private typealias Probe = (msg:String, type:PacketType, data:ContiguousArray<NSData>?)
|
private typealias Probe = (msg:String, type:PacketType, data:ContiguousArray<NSData>?)
|
||||||
private typealias ProbeWaitQueue = [Probe]
|
private typealias ProbeWaitQueue = [Probe]
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,7 @@ class SocketParser {
|
|||||||
private static let shredder = SocketParser.PacketShredder()
|
private static let shredder = SocketParser.PacketShredder()
|
||||||
|
|
||||||
// Translation of socket.io-parser#deconstructPacket
|
// Translation of socket.io-parser#deconstructPacket
|
||||||
private class PacketShredder {
|
private final class PacketShredder {
|
||||||
var buf = ContiguousArray<NSData>()
|
var buf = ContiguousArray<NSData>()
|
||||||
|
|
||||||
func shred(data:AnyObject) -> AnyObject {
|
func shred(data:AnyObject) -> AnyObject {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user