add some comments
This commit is contained in:
parent
b202b21d43
commit
e06a792503
@ -24,11 +24,18 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
|
/// Protocol that is used to implement socket.io polling support
|
||||||
public protocol SocketEnginePollable: SocketEngineSpec {
|
public protocol SocketEnginePollable: SocketEngineSpec {
|
||||||
var invalidated: Bool { get }
|
var invalidated: Bool { get }
|
||||||
|
/// Holds strings waiting to be sent over polling.
|
||||||
|
/// You shouldn't need to mess with this.
|
||||||
var postWait: [String] { get set }
|
var postWait: [String] { get set }
|
||||||
var session: NSURLSession? { get }
|
var session: NSURLSession? { get }
|
||||||
|
/// Because socket.io doesn't let you send two polling request at the same time
|
||||||
|
/// we have to keep track if there's an outstanding poll
|
||||||
var waitingForPoll: Bool { get set }
|
var waitingForPoll: Bool { get set }
|
||||||
|
/// Because socket.io doesn't let you send two post request at the same time
|
||||||
|
/// we have to keep track if there's an outstanding post
|
||||||
var waitingForPost: Bool { get set }
|
var waitingForPost: Bool { get set }
|
||||||
|
|
||||||
func doPoll()
|
func doPoll()
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
|
/// Protocol that is used to implement socket.io WebSocket support
|
||||||
public protocol SocketEngineWebsocket: SocketEngineSpec, WebSocketDelegate {
|
public protocol SocketEngineWebsocket: SocketEngineSpec, WebSocketDelegate {
|
||||||
var ws: WebSocket? { get }
|
var ws: WebSocket? { get }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user