Back to Socket Io Client Swift

SocketRawAckView

docs/Classes/SocketRawAckView.html

16.1.11.0 KB
Original Source

SocketRawAckView

public final class SocketRawAckView : NSObject

Class that gives a backwards compatible way to cause an emit not to recursively check for Data objects.

Usage:

ack.rawEmitView.with(myObject)

`

                with(_:)
                `

Call to ack receiving this event.

If an error occurs trying to transform items into their socket representation, a SocketClientEvent.error will be emitted. The structure of the error data is [ackNum, items, theError]

Declaration

Swift

public func with(_ items: SocketData...)

Parameters

| items |

A variable number of items to send when acking.

|

`

                with(_:)
                `

Call to ack receiving this event.

Declaration

Swift

@objc
public func with(_ items: [Any])

Parameters

| items |

An array of items to send when acking. Use [] to send nothing.

|