File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 37
37
- name : Install Anchor
38
38
run : RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
39
39
- name : Install pnpm
40
- run : npm install --global pnpm@9.13.2
40
+ run : npm install --global pnpm@9.15.4
41
41
- name : Install test dependencies
42
42
run : pnpm install --frozen-lockfile
43
43
- name : Run tests
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @pythnetwork/pyth-lazer-sdk" ,
3
- "version" : " 0.3.0 " ,
3
+ "version" : " 0.3.1 " ,
4
4
"description" : " Pyth Lazer SDK" ,
5
5
"publishConfig" : {
6
6
"access" : " public"
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export class WebSocketPool {
14
14
private messageListeners : ( ( event : WebSocket . Data ) => void ) [ ] ;
15
15
private allConnectionsDownListeners : ( ( ) => void ) [ ] ;
16
16
private wasAllDown = true ;
17
+ private checkConnectionStatesInterval : NodeJS . Timeout ;
17
18
18
19
private constructor ( private readonly logger : Logger = dummyLogger ) {
19
20
this . rwsPool = [ ] ;
@@ -23,7 +24,7 @@ export class WebSocketPool {
23
24
this . allConnectionsDownListeners = [ ] ;
24
25
25
26
// Start monitoring connection states
26
- setInterval ( ( ) => {
27
+ this . checkConnectionStatesInterval = setInterval ( ( ) => {
27
28
this . checkConnectionStates ( ) ;
28
29
} , 100 ) ;
29
30
}
@@ -218,5 +219,6 @@ export class WebSocketPool {
218
219
this . subscriptions . clear ( ) ;
219
220
this . messageListeners = [ ] ;
220
221
this . allConnectionsDownListeners = [ ] ;
222
+ clearInterval ( this . checkConnectionStatesInterval ) ;
221
223
}
222
224
}
You can’t perform that action at this time.
0 commit comments