mattdesl / budo

:clapper: a dev server for rapid prototyping
MIT License
2.18k stars 106 forks source link

New LiveReload Backend #194

Closed mattdesl closed 7 years ago

mattdesl commented 7 years ago

I've been thinking about switching out tiny-lr for a more custom solution that uses uws in the server and plain old WebSocket on the client.

This might allow for:

Downsides:

mattdesl commented 7 years ago

Some progress this week — you can test like so:

npm install mattdesl/budo#feature/livereload-rework -g
mattdesl commented 7 years ago

More progress in the same branch.

There are various open questions like: how should the LiveReload client be bundled and served to the user? How many times should budo try to re-connect to the LiveReload server? Should we expose the LiveReload client (send / receive events from budo's WebSocketServer) to the user, or force them to write their own client-side WebSocket handling if they want that sort of thing?

You can see some experimental LiveReload extensions but I'm still not 100% sure that will make it into budo.

mattdesl commented 7 years ago

BOOM

done. mostly.

tintenfrei commented 2 years ago

Got this on my terminal when running canvas-sketch: can you give me a hint of how to solve it?

NOTE: The bundled LiveReload client could not be found, so budo will generate this on the fly. This is most likely because you are using a git cloned version of budo instead of installing it from npm. You can run this from your cloned budo folder to create a build: npm run bundle-live-client