(req sessionEventRequest)
| 2069 | } |
| 2070 | |
| 2071 | func (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. |
| 2086 | func (c *Client) handleUserInputRequest(req userInputRequest) (*userInputResponse, *jsonrpc2.Error) { |
nothing calls this directly
no test coverage detected