@@ -171,12 +171,14 @@ const buildMessageHandlersForInitData = (initData, notify) => {
171171} ;
172172
173173
174- const buildMobileConfig = ( initData , options , notify ) => {
174+ const buildMobileConfig = ( initData , config , notify ) => {
175+ const options = config . options ;
175176 return {
176177 initData,
177178 onRegistered : ( connectionCode ) => {
178179 mobileData . mobileState = MobileState . WAITING_FOR_MOBILE ;
179180 options && options . onRegistered && options . onRegistered ( connectionCode ) ;
181+ config && config . initSocket && config . initSocket ( mobileData . session . socket ) ;
180182 notify ( { type : ACTION_TYPES . REGISTERED , connectionCode } ) ;
181183 } ,
182184 onRegisterFailed : errorMessage => {
@@ -227,8 +229,10 @@ const buildMobileConfig = (initData, options, notify) => {
227229 } ,
228230 url : options && options . url ,
229231 apikey : options && options . apikey ,
230- securityGroup : options && options . securityGroup
232+ securityGroup : options && options . securityGroup ,
233+ client : options && options . client
231234 } ;
235+
232236} ;
233237
234238export const sendInitData = ( initDataConfigured , notify ) => {
@@ -251,7 +255,7 @@ export const startConnect = (config, notify) => {
251255 if ( ! initData . action ) {
252256 initData . action = 'input' ;
253257 }
254- mobileData . mobileConfig = buildMobileConfig ( initData , config . options , notify ) ;
258+ mobileData . mobileConfig = buildMobileConfig ( initData , config , notify ) ;
255259 setFieldProperties ( fields , values , setters ) ;
256260 if ( mobileData . mobileState === MobileState . MOBILE_CONNECTED ) {
257261 mobileData . session . sendInitData ( initData ) ;
0 commit comments