@@ -39,12 +39,10 @@ export class QiSession {
39
39
this . connected = connected ;
40
40
this . disconnected = disconnected ;
41
41
42
- console . log ( 'DBG Emile qim about to connect w/17' ) ;
43
42
this . _socket = io . connect ( 'nao:nao@' + ipAddress + ':' + port , {
44
43
resource : 'libs/qimessaging/2/socket.io' ,
45
44
'force new connection' : true ,
46
45
} ) ;
47
- console . log ( 'DBG Emile qim connecting..' ) ;
48
46
49
47
this . _dfd = [ ] ;
50
48
this . _sigs = [ ] ;
@@ -61,8 +59,6 @@ export class QiSession {
61
59
this . _socket . on ( 'connect' , this . onConnect ) ;
62
60
63
61
this . service = this . createMetaCall ( 'ServiceDirectory' , 'service' , 'data' ) ;
64
-
65
- console . log ( 'DBG Emile qim done with init' ) ;
66
62
}
67
63
68
64
isConnected ( ) {
@@ -73,8 +69,6 @@ export class QiSession {
73
69
}
74
70
75
71
onReply ( data : any ) {
76
- console . log ( 'DBG Emile qim reply' ) ;
77
-
78
72
const idm = data [ 'idm' ] ;
79
73
if (
80
74
data [ 'result' ] !== undefined &&
@@ -129,15 +123,13 @@ export class QiSession {
129
123
}
130
124
131
125
onError ( data : any ) {
132
- console . log ( 'DBG Emile qim error' ) ;
133
126
if ( data [ 'idm' ] !== undefined ) {
134
127
this . _dfd [ data [ 'idm' ] ] . reject ( data [ 'result' ] ) ;
135
128
delete this . _dfd [ data [ 'idm' ] ] ;
136
129
}
137
130
}
138
131
139
132
onSignal ( data : any ) {
140
- console . log ( 'DBG Emile qim signal' ) ;
141
133
const result = data [ 'result' ] ;
142
134
const callback =
143
135
this . _sigs [ result [ 'obj' ] ] [ result [ 'signal' ] ] [ result [ 'link' ] ] ;
@@ -147,14 +139,12 @@ export class QiSession {
147
139
}
148
140
149
141
onConnect ( ) {
150
- console . log ( 'DBG Emile qim connect' ) ;
151
142
if ( this . connected ) {
152
143
this . connected ( this ) ;
153
144
}
154
145
}
155
146
156
147
onDisconnect ( _data : any ) {
157
- console . log ( 'DBG Emile qim disconnect' ) ;
158
148
for ( const idm in this . _dfd ) {
159
149
this . _dfd [ idm ] . reject ( 'Call ' + idm + ' canceled: disconnected' ) ;
160
150
delete this . _dfd [ idm ] ;
0 commit comments