tidwall/SwiftWebSocket

CPU usage 99% & not receiving messages

fwx opened this issue · 4 comments

fwx commented

I've switched from Starscream, since I couldnt send any messages and had troubles like disconnecting a lot of times. With SwiftWebSocket I can see CPU usage is 99% at func step(..) and I am unable to recieve any messages after first one (server hello)

fwx commented

iOS 11, by the way. Tested on iPhone 5S both device and simulator.

I also have this Issue. Just a Single Socket Connection creates this high Load (iOS 11 + iPhone 7 Plus). If you send a Message back to the Server at the Moment you get a Message (send Methode in onmessage Event). It will Generate 100% Load 😳

Any news about this ?

In my case, a single socket connection generates +/- 33% CPU load on an iPhone X.

Currently not :(. For Now i use SocketRocket. I‘ve written an abstraction Layer for it, so it’s as easy to use as this One :)