[fix] shinosaki/webpush-client-go@v1.0.1の変更に対応

This commit is contained in:
shinosaki 2025-03-01 10:23:08 +00:00
parent db488b99bf
commit 8672815ad6
3 changed files with 4 additions and 4 deletions

2
go.mod
View File

@ -4,7 +4,7 @@ go 1.23.6
require ( require (
github.com/google/uuid v1.6.0 github.com/google/uuid v1.6.0
github.com/shinosaki/websocket-client-go v1.0.0 github.com/shinosaki/websocket-client-go v1.0.1
golang.org/x/crypto v0.35.0 golang.org/x/crypto v0.35.0
golang.org/x/net v0.35.0 golang.org/x/net v0.35.0
) )

4
go.sum
View File

@ -1,7 +1,7 @@
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/shinosaki/websocket-client-go v1.0.0 h1:k70Nl86Cn1jjhBdYs77MyjWUR9xPHA94Mev8Ual1TiE= github.com/shinosaki/websocket-client-go v1.0.1 h1:QMi2c7sqMWX4EWetNdoTj6rzB8BXVFRcAYlnaAncFPA=
github.com/shinosaki/websocket-client-go v1.0.0/go.mod h1:fzgEpoLabqcgOjDVPo7dh6dTqhbCTgd3SdWO2a+fPxg= github.com/shinosaki/websocket-client-go v1.0.1/go.mod h1:fzgEpoLabqcgOjDVPo7dh6dTqhbCTgd3SdWO2a+fPxg=
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs= golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ= golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8= golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=

View File

@ -66,7 +66,7 @@ func NewNicoPushClient(
// Handshake performs a handshake with the AutoPush server and retrieves a UAID. // Handshake performs a handshake with the AutoPush server and retrieves a UAID.
// The obtained UAID is used for client identification and should be saved. // The obtained UAID is used for client identification and should be saved.
func (c *NicoPushClient) Handshake() (uaid string, err error) { func (c *NicoPushClient) Handshake() (uaid string, err error) {
if err := c.autoPushClient.Connect(autopush.MOZILLA_PUSH_SERVICE, 3, 2); err != nil { if err := c.autoPushClient.Connect(autopush.MOZILLA_PUSH_SERVICE, 3, 2, false); err != nil {
return "", fmt.Errorf("failed to connect autopush server: %v", err) return "", fmt.Errorf("failed to connect autopush server: %v", err)
} }