SwiftWebSocket icon indicating copy to clipboard operation
SwiftWebSocket copied to clipboard

Type 'RunLoop' has no member 'Mode'

Open adnanafzal565 opened this issue 6 years ago • 5 comments

Hello everyone.

I am getting this error "Type 'RunLoop' has no member 'Mode'" when I copy the file "WebSocket.swift" in my project.

I am using XCode Version 9.4.1 Mac OS High Sierra 10.13.4 Any help will be highly appreciated. Thanks.

adnanafzal565 avatar Apr 03 '19 14:04 adnanafzal565

I get the same error when upgrading to swift 4.2/5.0 & XCode 10.2. I build using Cocoapods, which gets SwiftWebSocket version 2.7.

melvindesilva65 avatar Apr 16 '19 17:04 melvindesilva65

that's because the author made code changes, but did not release a new version to the cocoapods master repo: https://github.com/CocoaPods/Specs/tree/9543734012238c33ea018af5a4381459c13f0916/Specs/2/c/d/SwiftWebSocket

FormsOverVNC avatar May 04 '19 11:05 FormsOverVNC

No updated version... ... Is there any other good swift web socket library ??

yhz82415 avatar May 15 '19 21:05 yhz82415

@yhz82415 you could have a lookt at Starscream https://github.com/daltoniam/Starscream

bielikb avatar May 26 '19 18:05 bielikb

Cocoapods is not the lasted. Just modify is by yourself. change RunLoopMode.defaultRunLoopMode to RunLoop.Mode.default

Aaronwang81 avatar Jun 04 '19 07:06 Aaronwang81