Don’t respond with an id if none was specified in the WebSocket RPC query

This commit is contained in:
Tobie Morgan Hitchcock 2022-10-25 06:23:45 -07:00
parent df8f297221
commit d2e7a8532d

View file

@ -14,6 +14,7 @@ pub enum Output {
#[derive(Serialize)]
pub struct Response<T> {
#[serde(skip_serializing_if = "Option::is_none")]
id: Option<Value>,
#[serde(flatten)]
content: Content<T>,