nitoyon/livereloadx

Consider upgrading 'ws' module dependency

Closed this issue · 3 comments

Hi, I am getting an uncaught error in my application, which implements LiveReloadX programmatically.

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: zlib binding closed
    at DeflateRaw.Zlib._transform (zlib.js:499:15)
    at DeflateRaw.Transform._read (_stream_transform.js:167:10)
    at DeflateRaw.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:307:12)
    at clearBuffer (_stream_writable.js:414:7)
    at onwrite (_stream_writable.js:346:7)
    at WritableState.onwrite (_stream_writable.js:89:5)
    at afterTransform (_stream_transform.js:79:3)
    at TransformState.afterTransform (_stream_transform.js:54:12)
    at Zlib.callback (zlib.js:639:5)

This error is hard to pin down, precisely, so I cannot definitely say that LiveReloadX is part of the problem, but I strongly suspect that it is because it implements ws, which has this issue and this pull request (which supposedly fixed the problem, as of ws@1.0.0).

Since ws is now at version 2.2.2, would you please consider upgrading your dependency?

Thanks,

I updated ws to latest in PR #36 if you want to try - not sure this project is still maintained unfortunately. Maybe it should be forked...

@nitoyon would be nice to release the recent changes?

@elsassph 0.3.10 has been released 🎉
Thank you for your contribution 😃