Skip to content

Commit 08db4db

Browse files
committed
fix: add isConnected into fixture
1 parent 4ce7bc0 commit 08db4db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/server/src/__tests__/fixtures/socketio-client.fixture.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ export class SocketIOClientFixture {
127127
return this.client;
128128
}
129129

130+
/**
131+
* Check if the client is currently connected
132+
*/
133+
isConnected(): boolean {
134+
return this.client?.connected ?? false;
135+
}
136+
130137
/**
131138
* Join a channel
132139
*/

0 commit comments

Comments
 (0)