File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,8 @@ export class ZilaServer<T extends ZilaClient = ZilaClient> {
173
173
return this . _status ;
174
174
}
175
175
176
- private _clients : Array < ZilaClient | T > = [ ] ;
176
+
177
+ private _clients : Array < T > = [ ] ;
177
178
178
179
public get clients ( ) {
179
180
return this . _clients ;
@@ -312,7 +313,7 @@ export class ZilaServer<T extends ZilaClient = ZilaClient> {
312
313
req . headers . cookie ? new Map ( Object . entries ( parseCookie ( req . headers . cookie ) ) ) : new Map ( )
313
314
) ;
314
315
315
- this . _clients . push ( zilaSocket ) ;
316
+ this . _clients . push ( zilaSocket as T ) ;
316
317
317
318
if ( this . serverEvents . onClientConnect ) {
318
319
for ( const cb of this . serverEvents . onClientConnect ) {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class MyClient extends ZilaClient {
29
29
describe ( "Non-Secure" , ( ) => {
30
30
let client : ZilaConnection ;
31
31
let server : ZilaServer < MyClient > ;
32
- let clientSocket : ZilaClient ;
32
+ let clientSocket : MyClient ;
33
33
34
34
beforeAll ( async ( ) => {
35
35
server = new ZilaServer < MyClient > ( {
You can’t perform that action at this time.
0 commit comments