More linux stuff
This commit is contained in:
parent
4eccf87ecc
commit
26af5a6296
@ -105,8 +105,8 @@ extension SocketEngineWebsocket {
|
||||
let socket = try TCPInternetSocket(scheme: url.scheme ?? "http",
|
||||
hostname: url.host ?? "localhost",
|
||||
port: Port(url.port ?? 80))
|
||||
let stream = secure ? try TLS.InternetSocket(socket, TLS.Context(.client)) : socket
|
||||
try WebSocket.background(to: connectURL, using: stream) {[weak self] ws in
|
||||
let stream: ClientStream = secure ? try TLS.InternetSocket(socket, TLS.Context(.client)) : socket
|
||||
try WebSocket.background(to: url, using: stream) {[weak self] ws in
|
||||
guard let this = self else { return }
|
||||
|
||||
this.ws = ws
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import Dispatch
|
||||
import Foundation
|
||||
#if !os(Linux)
|
||||
import StarscreamSocketIO
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user