File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,52 +114,6 @@ class PeerComms extends SocketComms {
114114 debug ( 'EXCEPTION ->' , err )
115115 }
116116 this . pending_calls --
117-
118-
119- return
120-
121- let response = null
122- const request = await this . decrypt ( { data : message } , this . remoteIdentity )
123- debug ( 'handleHostCall' , request )
124-
125- if ( ! this . authed ) {
126-
127-
128-
129- if ( request . op == 'auth' ) {
130- debug ( 'allowing client' )
131- response = {
132- op : 'status' ,
133- id : request . id ,
134- level : 'Info' ,
135- state : 'Finished_Success'
136- }
137-
138- clearTimeout ( this . _host_auth_timeout )
139- this . _host_auth_timeout = null
140-
141- this . authed = true
142- this . emit ( 'open' )
143- this . send ( response )
144- }
145-
146- return
147- }
148-
149- if ( request . op == 'peer-call' ) {
150- debug ( 'peer-call' )
151- if ( request . endpoint == 'api-v2-peer-bouncer' ) {
152- this . pending_calls ++
153- debug ( 'ask->' , request . data )
154- this . send ( {
155- op : 'status' ,
156- id : request . id ,
157- state : 'Finished_Success' ,
158- ...await this . party . handleCall ( request . data )
159- } )
160- this . pending_calls --
161- }
162- }
163117 }
164118
165119
@@ -315,10 +269,6 @@ class PeerComms extends SocketComms {
315269 response : res
316270 } ) )
317271
318- //debug('route via runner router')
319-
320- //await this.party.hostRunner.onRequest(req, res)
321-
322272 op . result = { result : res . _getData ( ) }
323273
324274 debug ( 'got result' , op . result )
You can’t perform that action at this time.
0 commit comments