fork of shinosaki's webpush client
Go to file
Shinosaki / 篠崎 db488b99bf
[update] credential含んでたから削除
2025-02-28 19:51:44 +09:00
autopush init 2025-02-27 13:00:06 +00:00
examples init 2025-02-27 13:00:06 +00:00
rfc8291 init 2025-02-27 13:00:06 +00:00
sites/nicopush [update] credential含んでたから削除 2025-02-28 19:51:44 +09:00
webpush init 2025-02-27 13:00:06 +00:00
LICENSE init 2025-02-27 13:00:06 +00:00
README.md init 2025-02-27 13:00:06 +00:00
go.mod init 2025-02-27 13:00:06 +00:00
go.sum init 2025-02-27 13:00:06 +00:00

README.md

webpush-client-go

webpush-client-goは、Golangで実装されたWebPushを受信するためのクライアントおよびライブラリです。

Features

  • RFC8188メッセージの暗号化・復号
    • aes128gcmのみのサポート
  • RFC8291メッセージの暗号化・復号
  • AutoPush (Mozilla Push Service) のクライアント
  • Application Serverごとのクライアント

Examples

examplesを参照してください。

  • examples/ece: 単純なRFC8291メッセージの暗号化・復号
  • examples/nicopush: ニコニコのWebPush通知を受信しますAutoPush

NicoPush

NICONICO_USER_SESSION_VALUEnicovideo.jpuser_sessionクッキーの値を指定してください。

echo '{"user_session":"NICONICO_USER_SESSION_VALUE"}' > config.json

go run ./examples/nicopush/main.go

References

LICENSE

MIT

Author

shinosaki