diff --git a/sse/encoder.go b/sse/encoder.go index 1f336bec..b5b9779a 100644 --- a/sse/encoder.go +++ b/sse/encoder.go @@ -4,6 +4,7 @@ import ( "encoding/json" "errors" "fmt" + "strconv" "github.com/anycable/anycable-go/common" "github.com/anycable/anycable-go/encoders" @@ -67,7 +68,7 @@ func (e *Encoder) Encode(msg encoders.EncodedMessage) (*ws.SentFrame, error) { if msgType == "disconnect" { dmsg, ok := msg.(*common.DisconnectMessage) if ok && !dmsg.Reconnect { - payload += "\nretry: " + fmt.Sprintf("%d", retryNoReconnect) + payload += "\nretry: " + strconv.Itoa(retryNoReconnect) } }