fix makeSocket sesame param
This commit is contained in:
+2
-2
@@ -17,9 +17,9 @@ function stripAfterEquals(str:string):string{
|
||||
* A websocket-on-steroids with built-in RPC capabilities
|
||||
*/
|
||||
export class RPCSocket implements I.Socket{
|
||||
static async makeSocket<T extends T.RPCInterface= T.RPCInterface>(port:number, server: string, conf?:T.SocketConf): Promise<RPCSocket & T.RPCInterface<T>> {
|
||||
static async makeSocket<T extends T.RPCInterface= T.RPCInterface>(port:number, server: string, sesame?:string, conf?:T.SocketConf): Promise<RPCSocket & T.RPCInterface<T>> {
|
||||
const socket = <RPCSocket & T> new RPCSocket(port, server, conf)
|
||||
return await socket.connect<T>()
|
||||
return await socket.connect<T>(sesame)
|
||||
}
|
||||
|
||||
private socket: I.Socket
|
||||
|
||||
Reference in New Issue
Block a user