diff --git a/package.json b/package.json index 8d0ecc0..271d65c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rpclibrary", - "version": "1.4.1", + "version": "1.4.2", "description": "rpclibrary is a websocket on steroids!", "main": "./js/Index.js", "repository": { diff --git a/src/Frontend.ts b/src/Frontend.ts index 1d27644..1d242a2 100644 --- a/src/Frontend.ts +++ b/src/Frontend.ts @@ -17,8 +17,8 @@ function stripAfterEquals(str:string):string{ * A websocket-on-steroids with built-in RPC capabilities */ export class RPCSocket implements I.Socket{ - static async makeSocket(port:number, server: string, sesame?:string, conf?:T.SocketConf): Promise> { - const socket = new RPCSocket(port, server, conf) + static async makeSocket(port:number, server: string, sesame?:string, conf?:T.SocketConf): Promise { + const socket = new RPCSocket(port, server, conf) return await socket.connect(sesame) } @@ -95,7 +95,7 @@ export class RPCSocket implements I.Socket{ /** * Connects to the server and attaches available RPCs to this object */ - public async connect( sesame?: string ) : Promise>{ + public async connect( sesame?: string ) : Promise{ this.socket = await bsock.connect(this.port, this.server, this.conf.tls?this.conf.tls:false) const info:T.ExtendedRpcInfo[] = await this.info()