Publish a session error event
(&self, session_id: Option<&str>, error: serde_json::Value)
| 1180 | |
| 1181 | /// Publish a session error event |
| 1182 | pub fn publish_error(&self, session_id: Option<&str>, error: serde_json::Value) { |
| 1183 | let mut props = serde_json::json!({ "error": error }); |
| 1184 | if let Some(sid) = session_id { |
| 1185 | props["sessionID"] = serde_json::Value::String(sid.to_string()); |
| 1186 | } |
| 1187 | self.publish_event(&SESSION_ERROR_EVENT, props); |
| 1188 | } |
| 1189 | |
| 1190 | /// Publish a session diff event |
| 1191 | pub fn publish_diff(&self, session_id: &str, diffs: &[FileDiff]) { |
nothing calls this directly
no test coverage detected