Browse Source

fix makeSocket sesame param

master
peter 5 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
 {
1
 {
2
   "name": "rpclibrary",
2
   "name": "rpclibrary",
3
-  "version": "1.4.0",
3
+  "version": "1.4.1",
4
   "description": "rpclibrary is a websocket on steroids!",
4
   "description": "rpclibrary is a websocket on steroids!",
5
   "main": "./js/Index.js",
5
   "main": "./js/Index.js",
6
   "repository": {
6
   "repository": {

+ 2
- 2
src/Frontend.ts View File

17
  * A websocket-on-steroids with built-in RPC capabilities
17
  * A websocket-on-steroids with built-in RPC capabilities
18
  */
18
  */
19
 export class RPCSocket implements I.Socket{
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
         const socket = <RPCSocket & T> new RPCSocket(port, server, conf)
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
     private socket: I.Socket
25
     private socket: I.Socket

Loading…
Cancel
Save