MCPcopy Create free account
hub / github.com/microsoft/typescript-go / send

Method send

internal/lsp/server.go:692–694  ·  view source on GitHub ↗

send writes a message to the outgoing queue, respecting context cancellation.

(msg *lsproto.Message)

Source from the content-addressed store, hash-verified

690
691// send writes a message to the outgoing queue, respecting context cancellation.
692func (s *Server) send(msg *lsproto.Message) error {
693 return s.outgoingQueue.Put(s.backgroundCtx, msg)
694}
695
696// handleRequestOrNotification looks up the handler for the given request or notification, executes its synchronous work
697// and returns any asynchronous work as a function to be executed by the caller.

Calls 1

PutMethod · 0.80