Closed keithhackbarth closed 2 years ago
In our React code, we see logging for onConnecting, onReconnecting and onDisconnected events but not onConnected and onReconnected
onConnecting
onReconnecting
onDisconnected
onConnected
onReconnected
It appears that a few people have complained about this issue in various Stackoverflow threads but have not seen it listed here.
subscription-transport-ws: 0.9.19 python graphene blackened
client code
export const addListeners = (subscriptionClient, onConnect, onDisconnect) => { subscriptionClient.onConnecting(() => { Log.info('connecting to websocket...'); }); subscriptionClient.onConnected(() => { Log.info('connected to websocket!'); }); subscriptionClient.onReconnecting(() => { Log.info('reconnecting to websocket...'); }); subscriptionClient.onReconnected(() => { Log.info('reconnected to websocket'); }); subscriptionClient.onDisconnected(() => { Log.warn('disconnected from websocket'); }); };
Normally, onConnected & onReconnected will be fired after the server acknowledges with { type: 'connection_ack' }
{ type: 'connection_ack' }
@keithhackbarth Could you please confirm on dev-tools ? It should display like this.
In our React code, we see logging for
onConnecting
,onReconnecting
andonDisconnected
events but notonConnected
andonReconnected
It appears that a few people have complained about this issue in various Stackoverflow threads but have not seen it listed here.
subscription-transport-ws: 0.9.19 python graphene blackened
client code