File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ extension SocketEngineWebsocket {
105
105
let socket = try TCPInternetSocket ( scheme: url. scheme ?? " http " ,
106
106
hostname: url. host ?? " localhost " ,
107
107
port: Port ( url. port ?? 80 ) )
108
- let stream = secure ? try TLS . InternetSocket ( socket, TLS . Context ( . client) ) : socket
109
- try WebSocket . background ( to: connectURL , using: stream) { [ weak self] ws in
108
+ let stream : ClientStream = secure ? try TLS . InternetSocket ( socket, TLS . Context ( . client) ) : socket
109
+ try WebSocket . background ( to: url , using: stream) { [ weak self] ws in
110
110
guard let this = self else { return }
111
111
112
112
this. ws = ws
Original file line number Diff line number Diff line change 22
22
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
23
// THE SOFTWARE.
24
24
25
+ import Dispatch
25
26
import Foundation
26
27
#if !os(Linux)
27
28
import StarscreamSocketIO
You can’t perform that action at this time.
0 commit comments