Skip to content

Commit

Permalink
Changed handleRpcReq to handleRpcRep
Browse files Browse the repository at this point in the history
  • Loading branch information
grafitto committed Nov 23, 2018
1 parent d8072d7 commit b8045ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class ServiceBase {
* @param msg Response from Surix
* @param handler Handles the response
*/
private handleRpcReq(msg: any, handler: any) {
private handleRpcRep(msg: any, handler: any) {
if(msg.success) {
handler.rpcTracker[msg.id].resolve(msg.body);
} else {
Expand All @@ -104,7 +104,7 @@ export class ServiceBase {
const msg: any = event.data;
switch(msg.type) {
case 'rpcRep':
this.handleRpcReq(msg, this);
this.handleRpcRep(msg, this);
break;
case 'event':
this.emit(msg);
Expand Down

0 comments on commit b8045ea

Please sign in to comment.