-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sendBeacon #249
Comments
I believe it doesn't |
|
We could really use this as well. @xg-wang I don't think I quite understand your last comment. Could you provide more context? If it's something relatively simple to do I may be able to help out. |
@Aaronius My idea was we can include a small polyfill of let |
@jackson-dean @Aaronius thinking more on this, how do you think about something like this, and what else would you like to add? const beaconHandler = server.sendBeacon('/api/beacon', true /* sendBeacon can only return boolean */);
beaconHandler.returns(false); // can control the return value
beaconHandler.numberOfCalls; // has same `numberOfCalls` as regular handlers
beaconHandler.async === false; // always sync |
I have a request being sent using the native sendBeacon api which pretender does not intercept. Is this something that should/could be added? Or is it already somehow supported and I am just missing something?
The text was updated successfully, but these errors were encountered: