v2.1.0: deprecate boolean props for websocket market. Expand types. Implement spot ws ping/pong
This commit is contained in:
@@ -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' &&
|
||||
|
||||
Reference in New Issue
Block a user