File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
.swiftpm/xcode/package.xcworkspace/xcuserdata/nguyenphong.xcuserdatad
Sources/MSocket/SwiftWebSocket Expand file tree Collapse file tree 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 {
1111
1212 public init ( urlRequest: URLRequest ? = nil ,
1313 @RequestBuilder builder: ( ) -> RequestBuilderProtocol ) {
14- self . urlRequest = urlRequest ?? URLRequest ( url: URL ( string: " https ://" ) !)
14+ self . urlRequest = urlRequest ?? URLRequest ( url: URL ( string: " wss ://" ) !)
1515 self . parameter = builder ( )
1616 parameter. build ( request: & self . urlRequest)
1717 socket = WebSocket ( request: self . urlRequest)
@@ -26,13 +26,13 @@ final public class SwiftWebSocket {
2626 }
2727 }
2828
29- func write( string: String ? , completion: ( ( ) -> ( ) ) ? = nil ) {
29+ public func write( string: String ? , completion: ( ( ) -> ( ) ) ? = nil ) {
3030 if let string = string {
3131 socket? . write ( string: string, completion: completion)
3232 }
3333 }
3434
35- func write( data: Data ? , completion: ( ( ) -> ( ) ) ? = nil ) {
35+ public func write( data: Data ? , completion: ( ( ) -> ( ) ) ? = nil ) {
3636 if let data = data {
3737 socket? . write ( data: data, completion: completion)
3838 }
You can’t perform that action at this time.
0 commit comments