Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions internal/msgpackrouter/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ func (r *Router) connectionLoop(conn io.ReadWriteCloser) {
// This handler is called when a notification is received from the client
slog.Debug("Received notification", "method", method, "params", params)

// Check if the method is an internal method
if handler, ok := r.routesInternal[method]; ok {
// call the internal method handler (since it's a notification, discard the result)
_, _ = handler(context.Background(), msgpackconn, params)
return
}

// Check if the method is registered
client, ok := r.getConnectionForMethod(method)
if !ok {
Expand Down