Skip to content

Commit 1b6144a

Browse files
committed
change access level to public for raw view
1 parent 948ea5f commit 1b6144a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/SocketIO/Client/SocketRawView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class SocketRawView: NSObject {
2525
///
2626
/// - parameter event: The event to send.
2727
/// - parameter items: The items to send with this event. May be left out.
28-
open func emit(_ event: String, _ items: SocketData...) {
28+
public func emit(_ event: String, _ items: SocketData...) {
2929
do {
3030
try emit(event, with: items.map({ try $0.socketRepresentation() }))
3131
} catch let err {
@@ -41,7 +41,7 @@ public final class SocketRawView: NSObject {
4141
/// - parameter event: The event to send.
4242
/// - parameter items: The items to send with this event. Send an empty array to send no data.
4343
@objc
44-
open func emit(_ event: String, with items: [Any]) {
44+
public func emit(_ event: String, with items: [Any]) {
4545
guard socket.status == .connected else {
4646
socket.handleClientEvent(.error, data: ["Tried emitting \(event) when not connected"])
4747
return
@@ -69,7 +69,7 @@ public final class SocketRawView: NSObject {
6969
/// - parameter event: The event to send.
7070
/// - parameter items: The items to send with this event. May be left out.
7171
/// - returns: An `OnAckCallback`. You must call the `timingOut(after:)` method before the event will be sent.
72-
open func emitWithAck(_ event: String, _ items: SocketData...) -> OnAckCallback {
72+
public func emitWithAck(_ event: String, _ items: SocketData...) -> OnAckCallback {
7373
do {
7474
return emitWithAck(event, with: try items.map({ try $0.socketRepresentation() }))
7575
} catch let err {
@@ -99,7 +99,7 @@ public final class SocketRawView: NSObject {
9999
/// - parameter items: The items to send with this event. Use `[]` to send nothing.
100100
/// - returns: An `OnAckCallback`. You must call the `timingOut(after:)` method before the event will be sent.
101101
@objc
102-
open func emitWithAck(_ event: String, with items: [Any]) -> OnAckCallback {
102+
public func emitWithAck(_ event: String, with items: [Any]) -> OnAckCallback {
103103
return socket.createOnAck([event] + items, binary: false)
104104
}
105105
}

0 commit comments

Comments
 (0)