Bump to v5.0.2

* Fix infinity loop caused by WebSockets