@@ -18,6 +18,7 @@ import { AsyncCommandResult, KnownDataStatusCode } from '../../request';
1818import  *  as  NetSocket  from  '../../network/socket' ; 
1919import  {  GetConfRes  }  from  '../../packet/booking' ; 
2020import  {  CheckinRes  }  from  '../../packet/checkin' ; 
21+ import  {  Long  }  from  'bson' ; 
2122
2223/** 
2324 * Create loco stream by performing booking and checkin. 
@@ -33,7 +34,7 @@ export class TalkSessionFactory implements SessionFactory {
3334    return  getBookingData ( bookingStream ,  config ) ; 
3435  } 
3536
36-   async  getCheckin ( config : CheckinConfig ) : AsyncCommandResult < CheckinRes >  { 
37+   async  getCheckin ( userId :  Long ,   config : CheckinConfig ) : AsyncCommandResult < CheckinRes >  { 
3738    let  checkinStream ; 
3839    const  checkinCrypto  =  await  newCryptoStore ( config . locoPEMPublicKey ) ; 
3940    try  { 
@@ -56,11 +57,11 @@ export class TalkSessionFactory implements SessionFactory {
5657      } ) ,  checkinCrypto ) ; 
5758    } 
5859
59-     return  getCheckinData ( checkinStream ,  config ) ; 
60+     return  getCheckinData ( checkinStream ,  config ,   userId ) ; 
6061  } 
6162
62-   async  connect ( config : SessionConfig ) : AsyncCommandResult < ConnectionSession >  { 
63-     const  checkinRes  =  await  this . getCheckin ( config ) ; 
63+   async  connect ( userId :  Long ,   config : SessionConfig ) : AsyncCommandResult < ConnectionSession >  { 
64+     const  checkinRes  =  await  this . getCheckin ( userId ,   config ) ; 
6465    if  ( ! checkinRes . success )  return  checkinRes ; 
6566
6667    const  locoStream  =  new  LocoSecureLayer ( await  NetSocket . createTCPSocket ( { 
0 commit comments