MCPcopy Index your code
hub / github.com/github/copilot-sdk / handleSessionEvent

Method handleSessionEvent

go/client.go:2071–2083  ·  view source on GitHub ↗
(req sessionEventRequest)

Source from the content-addressed store, hash-verified

2069}
2070
2071func (c *Client) handleSessionEvent(req sessionEventRequest) {
2072 if req.SessionID == "" {
2073 return
2074 }
2075 // Dispatch to session
2076 c.sessionsMux.Lock()
2077 session, ok := c.sessions[req.SessionID]
2078 c.sessionsMux.Unlock()
2079
2080 if ok {
2081 session.dispatchEvent(req.Event)
2082 }
2083}
2084
2085// handleUserInputRequest handles a user input request from the CLI server.
2086func (c *Client) handleUserInputRequest(req userInputRequest) (*userInputResponse, *jsonrpc2.Error) {

Callers

nothing calls this directly

Calls 1

dispatchEventMethod · 0.45

Tested by

no test coverage detected