1- import * as Ably from 'ably' ;
1+ import { Realtime , RealtimeChannel , Message as AblyMessage } from 'ably' ;
22import { InternalEventEmitter , PublicEventEmitter } from '.' ;
33import {
44 AnamEvent ,
@@ -17,8 +17,8 @@ export class SignallingClient {
1717 private sessionId : string ;
1818 private ablyToken : string ;
1919 private channelName : string ;
20- private realtime : Ably . Realtime | null = null ;
21- private channel : Ably . RealtimeChannel | null = null ;
20+ private realtime : Realtime | null = null ;
21+ private channel : RealtimeChannel | null = null ;
2222 private stopSignal = false ;
2323
2424 constructor (
@@ -62,7 +62,7 @@ export class SignallingClient {
6262 }
6363
6464 // Initialize Ably Realtime client with echo disabled
65- this . realtime = new Ably . Realtime ( {
65+ this . realtime = new Realtime ( {
6666 token : this . ablyToken ,
6767 echoMessages : false ,
6868 disconnectedRetryTimeout : 1000 , // Retry after 1 second
@@ -192,7 +192,7 @@ export class SignallingClient {
192192 ) ;
193193 }
194194
195- private onMessage ( message : Ably . Message ) {
195+ private onMessage ( message : AblyMessage ) {
196196 // Extract the SignalMessage from Ably message data
197197 let signalMessage : SignalMessage = message . data ;
198198 // Messages coming back from the server may have an encoded payload, convert it to unencoded for cosumption elsewhere in the SDK
0 commit comments