Browse Source

fix makeSocket sesame param

master
peter 4 years ago
parent
commit
70cd62bbbd
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      package.json
  2. 2
    2
      src/Frontend.ts

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "rpclibrary",
3
-  "version": "1.4.0",
3
+  "version": "1.4.1",
4 4
   "description": "rpclibrary is a websocket on steroids!",
5 5
   "main": "./js/Index.js",
6 6
   "repository": {

+ 2
- 2
src/Frontend.ts View File

@@ -17,9 +17,9 @@ function stripAfterEquals(str:string):string{
17 17
  * A websocket-on-steroids with built-in RPC capabilities
18 18
  */
19 19
 export class RPCSocket implements I.Socket{
20
-    static async makeSocket<T extends T.RPCInterface= T.RPCInterface>(port:number, server: string, conf?:T.SocketConf): Promise<RPCSocket & T.RPCInterface<T>> {
20
+    static async makeSocket<T extends T.RPCInterface= T.RPCInterface>(port:number, server: string, sesame?:string, conf?:T.SocketConf): Promise<RPCSocket & T.RPCInterface<T>> {
21 21
         const socket = <RPCSocket & T> new RPCSocket(port, server, conf)
22
-        return await socket.connect<T>()
22
+        return await socket.connect<T>(sesame)
23 23
     }
24 24
 
25 25
     private socket: I.Socket

Loading…
Cancel
Save