Skip to content

Commit

Permalink
feat:传入sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
dezhiShen authored and dezhiShen committed Oct 15, 2023
1 parent 9b559f5 commit 186671d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/client/event_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type WebsocketEventChannel struct {
Conn *websocket.Conn
addr string
accessToken string
sequence string
}

func NewWebsocketEventChannel(conf config.SatoriEventConfig) (EventTemplate, error) {
Expand All @@ -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 {
Expand Down

0 comments on commit 186671d

Please sign in to comment.