SwiftWebSocket icon indicating copy to clipboard operation
SwiftWebSocket copied to clipboard

CPU usage 99% & not receiving messages

Open fwx opened this issue 7 years ago • 4 comments

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 avatar Oct 13 '17 03:10 fwx

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

fwx avatar Oct 13 '17 05:10 fwx

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 😳

Vinz1911 avatar Jan 28 '18 14:01 Vinz1911

Any news about this ?

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

emilien-io avatar Feb 09 '18 14:02 emilien-io

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 :)

Vinz1911 avatar Feb 09 '18 19:02 Vinz1911