@@ -147,7 +147,6 @@ interface PendingSubscribe {
147147export class WsTransport extends Transport {
148148 private readonly _url : string ;
149149 private readonly _auth ?: AuthConfig ;
150- private readonly _identity ?: ConduitIdentity ;
151150
152151 private _ws : WebSocket | null = null ;
153152 private _nextId = 0 ;
@@ -156,7 +155,7 @@ export class WsTransport extends Transport {
156155 private readonly _pendingSubscribe = new Map < string , PendingSubscribe > ( ) ;
157156 private readonly _subscriptions = new Map < string , Subscription > ( ) ;
158157
159- constructor ( url : string , auth ?: AuthConfig , _timeout ?: number , identity ?: ConduitIdentity ) {
158+ constructor ( url : string , auth ?: AuthConfig , _timeout ?: number , _identity ?: ConduitIdentity ) {
160159 super ( ) ;
161160
162161 const scheme = new URL ( url ) . protocol . replace ( ':' , '' ) ;
@@ -166,7 +165,6 @@ export class WsTransport extends Transport {
166165
167166 this . _url = url ;
168167 this . _auth = auth ;
169- this . _identity = identity ;
170168 }
171169
172170 // ── Lifecycle ─────────────────────────────────────────────────────────────
@@ -186,7 +184,7 @@ export class WsTransport extends Transport {
186184 await new Promise < void > ( ( resolve , reject ) => {
187185 ws . onopen = ( ) => resolve ( ) ;
188186 ws . onerror = ( ev : Event ) =>
189- reject ( new Error ( `WS connect failed: ${ ( ev as ErrorEvent ) . message ?? 'unknown' } ` ) ) ;
187+ reject ( new Error ( `WS connect failed: ${ ( ev as any ) . message ?? 'unknown' } ` ) ) ;
190188 } ) ;
191189
192190 ws . onmessage = ( ev : MessageEvent ) => this . _handleMessage ( ev . data ) ;
0 commit comments