OnAckCallback
public final class OnAckCallback : NSObject
A class that represents an emit that will request an ack that has not yet been sent.
Call timingOut(after:callback:) to complete the emit
Example:
socket.emitWithAck("myEvent").timingOut(after: 1) {data in
...
}
-
Completes an emitWithAck. If this isn’t called, the emit never happens.
Declaration
Swift
public func timingOut(after seconds: Double, callback: @escaping AckCallback)
OnAckCallback Class Reference