Update webSDK to 1.80 problem due to received events order
After update to 1.80 from 1.78.0 some issues arise in our code for receiving events before service readiness. (Ocurring in Edge,Chrome, Opera, Firefox)
Before we received event "connected" after all signin services notifications of readiness appear:
Mon, 14 Dec 2020 21:58:58 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Conference service ready!
rainbow-sdk.min.js:1 Mon, 14 Dec 2020 21:58:58 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Records service ready!
rainbow-sdk.min.js:1 Mon, 14 Dec 2020 21:58:58 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Channel service ready!
rainbow-sdk.min.js:1 Mon, 14 Dec 2020 21:58:58 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Services Successfully loaded!
rainbow-sdk.min.js:1
Mon, 14 Dec 2020 21:58:58 GMT | Rainbow Web SDK | ConnectionService | [onChange] :: Connection state changed to connected
We create bubble if not existent and receive bubble updates after this connected event is received with no issues. (Bubbles array is populated and bubble can be searched based on CustomData, if not exists a bubble can be created)
But after 1.80 update we have the following issue: "connected" event is received once or twice, first allways before notification of service readiness is received and sometimes a second event of "connected" after all services are ready. This leads to after the first event is received to try to search within bubbles array but is empty allways after the first event. This is the console received:
Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [onChange] :: Connection state changed to inProgress
Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [onChange] :: Connection state changed to connected
Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Company service ready!
Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Admin company service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Company Directory Service company service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Admin user service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | PresenceService | [onPresenceChangedEvent] :: Rich Presence changed for myself to status offline, message '' and telStatus ''
Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Contact service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Profile service ready!
rainbow-sdk.min.js:3
Mon, 14 Dec 2020 22:10:39 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Invitation service ready!
Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: FileServer service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: FileStorage service ready!
Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Room service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Group service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Favorite service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Voice Message Service service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: WebrtcGateway service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Video service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: WebRTCEventHandler service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Telephony service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Web Conference service ready!
rainbow-sdk.min.js:3 Mon, 14 Dec 2020 22:10:40 GMT | Rainbow Web SDK | ConnectionService | [signin] :: Conversation service ready!
After this also an event of connected is received.
Anyone know if it is a normal functionaoing and in that case what can we listen to know services are ready?
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
0 Kommentare