v2.1.0: deprecate boolean props for websocket market. Expand types. Implement spot ws ping/pong

This commit is contained in:
tiagosiebler
2021-08-15 10:50:10 +01:00
parent eb1520126a
commit 572bd19abd
3 changed files with 144 additions and 17 deletions

View File

@@ -61,6 +61,9 @@ export function isPublicEndpoint (endpoint: string): boolean {
}
export function isWsPong(response: any) {
if (response.pong) {
return true;
}
return (
response.request &&
response.request.op === 'ping' &&