File tree 2 files changed +3
-3
lines changed
.swiftpm/xcode/package.xcworkspace/xcuserdata/nguyenphong.xcuserdatad
Sources/MSocket/SwiftWebSocket
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ final public class SwiftWebSocket {
11
11
12
12
public init ( urlRequest: URLRequest ? = nil ,
13
13
@RequestBuilder builder: ( ) -> RequestBuilderProtocol ) {
14
- self . urlRequest = urlRequest ?? URLRequest ( url: URL ( string: " https ://" ) !)
14
+ self . urlRequest = urlRequest ?? URLRequest ( url: URL ( string: " wss ://" ) !)
15
15
self . parameter = builder ( )
16
16
parameter. build ( request: & self . urlRequest)
17
17
socket = WebSocket ( request: self . urlRequest)
@@ -26,13 +26,13 @@ final public class SwiftWebSocket {
26
26
}
27
27
}
28
28
29
- func write( string: String ? , completion: ( ( ) -> ( ) ) ? = nil ) {
29
+ public func write( string: String ? , completion: ( ( ) -> ( ) ) ? = nil ) {
30
30
if let string = string {
31
31
socket? . write ( string: string, completion: completion)
32
32
}
33
33
}
34
34
35
- func write( data: Data ? , completion: ( ( ) -> ( ) ) ? = nil ) {
35
+ public func write( data: Data ? , completion: ( ( ) -> ( ) ) ? = nil ) {
36
36
if let data = data {
37
37
socket? . write ( data: data, completion: completion)
38
38
}
You can’t perform that action at this time.
0 commit comments