Don’t respond with an id
if none was specified in the WebSocket RPC query
This commit is contained in:
parent
df8f297221
commit
d2e7a8532d
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ pub enum Output {
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
pub struct Response<T> {
|
pub struct Response<T> {
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
id: Option<Value>,
|
id: Option<Value>,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
content: Content<T>,
|
content: Content<T>,
|
||||||
|
|
Loading…
Reference in a new issue