diff --git a/src/websocket.ts b/src/websocket.ts index f118dbb..049c60c 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -679,5 +679,5 @@ export function wsJsonToRes( msg: any, responseClass: ClassConstructor ): ResponseType { - return deserialize(responseClass, msg.data); + return deserialize(responseClass, JSON.stringify(msg.data)); }