You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be useful in some circumstances to get a reference to the HTTP server in order to be able to programmatically request a client refresh.
Maybe something like:
I would like this functionality because I want to build my website to a PDF using Puppeteer. That only works properly when the website is served by a server (rather than with a file: URL). Previously, here’s what I did:
eleventyConfig.setBrowserSyncConfig({snippet: false,callbacks: {asyncready(err,bs){port=bs.server.address().port;await(awaitrenderPDF)(port);if(process.env.BAND_BOOK_ONESHOT){// stop the server immediately when running `npm run build`process.exit(0);}},},});
It can be useful in some circumstances to get a reference to the HTTP server in order to be able to programmatically request a client refresh.
Maybe something like:
and then somewhere else:
ds.sendUpdateNotification(...)
.The text was updated successfully, but these errors were encountered: