From 186671d14461e4405b5ed611462f1bca1ef635ae Mon Sep 17 00:00:00 2001 From: dezhiShen <{ID}+{username}@users.noreply.github.com> Date: Sun, 15 Oct 2023 14:31:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BC=A0=E5=85=A5sequence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/client/event_ws.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/client/event_ws.go b/pkg/client/event_ws.go index 2940e8b..dc182c8 100644 --- a/pkg/client/event_ws.go +++ b/pkg/client/event_ws.go @@ -15,6 +15,7 @@ type WebsocketEventChannel struct { Conn *websocket.Conn addr string accessToken string + sequence string } func NewWebsocketEventChannel(conf config.SatoriEventConfig) (EventTemplate, error) { @@ -37,7 +38,8 @@ func (cli *WebsocketEventChannel) sendIDENTIFY() { err := cli.Conn.WriteJSON(map[string]interface{}{ "op": IDENTIFY, "body": map[string]string{ - "token": cli.accessToken, + "token": cli.accessToken, + "sequence": cli.sequence, }, }) if err != nil {