web-push
web-push copied to clipboard
Web Push library for Ruby (RFC8030) - A fork of zaru/webpush actively maintained by Pushpad with many improvements, bug fixes and updates.
https://github.com/pushpad/web-push/blob/20f40d9586b524b8c75e64887683931d6e11b078/spec/web_push/vapid_key_spec.rb#L19 occasionally this is 31 bytes ```ruby key = nil 30_000.times do |x| key = Webpush::VapidKey.new if key.curve.private_key.to_s(2).bytesize < 32 puts x break end end puts([format("%064x", key.curve.private_key.to_i)].pack('H*').bytes[0...3]) puts '---' puts(key.curve.private_key.to_s(2).bytes[0...3])...
Hi, I'll like to propose adding an option that allows users to switch out the `Net::HTTP` client for another HTTP client of their choice. By default, the `Net::HTTP` client does...
Starting from Jun 26 we noticed a very high number of Chrome subscriptions (`https://fcm.googleapis.com/fcm/send/...`) returning 404 errors. All these subscriptions were returning successful status codes in the previous days /...
Hello! Rather than raising `ResponseError`, which is also used as a base class for other errors, we now raise `UnknownError`. This results in more specific error reporting when an unknown...