Skip to content

Commit 7ce5129

Browse files
committed
fix: SendNotification with canonical empty array
1 parent 79f2c21 commit 7ce5129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/msgpackrouter/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func (r *Router) connectionLoop(conn io.ReadWriteCloser, sendStartNotification b
164164

165165
if sendStartNotification {
166166
// Send the start notification to the client
167-
if err := msgpackconn.SendNotification("$/start", nil); err != nil {
167+
if err := msgpackconn.SendNotification("$/start", []any{}); err != nil {
168168
slog.Error("Failed to send $/start notification", "err", err)
169169
return
170170
}

0 commit comments

Comments
 (0)