pladaria / reconnecting-websocket

Reconnecting WebSocket. For Web, React Native, cli (Node.js)
MIT License
1.22k stars 197 forks source link

Fixed the setTimeout scope issue (acceptOpen) #62

Closed patw0929 closed 6 years ago

patw0929 commented 6 years ago

This PR fixed the scope issue in setTimeout & acceptOpen function.

Because I got an error Cannot set property '_retryCount' of undefined when using reconnecting-websocket with React Native:

simulator screen shot - iphone 7 plus ios 11 - 2018-05-18 at 11 14 07

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling a30232ccbc5a66614b8bfdef246c3aa1d897252d on patw0929:feature/fix-retrycount-issue into fa634472c3b1b2785c4d19f0fb749a71bd660332 on pladaria:master.

pladaria commented 6 years ago

Thank you!

pladaria commented 6 years ago

published reconnecting-websocket@4.0.0-rc3