refactor: rename DTree to DValue
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "testlib.h"
|
||||
|
||||
DTree websocket_suite_event(Request& context, String type, String nonce)
|
||||
DValue websocket_suite_event(Request& context, String type, String nonce)
|
||||
{
|
||||
DTree event;
|
||||
DValue event;
|
||||
event["type"] = type;
|
||||
event["nonce"] = nonce;
|
||||
event["connection_id"] = ws_connection_id();
|
||||
@@ -106,7 +106,7 @@ WS(Request& context)
|
||||
return;
|
||||
}
|
||||
|
||||
DTree payload = json_decode(ws_message());
|
||||
DValue payload = json_decode(ws_message());
|
||||
String type = trim(payload["type"].to_string());
|
||||
String nonce = trim(payload["nonce"].to_string());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user