rpclibrary › Globals › “Interfaces” › Socket
Generic socket interface that can apply to bsock as well as RPCSocket
↳ Socket
• call: function
Defined in Interfaces.ts:19
▸ (rpcname
: T.Name, …args
: T.Any[]): Promise‹T.Any›
Parameters:
Name | Type |
---|---|
rpcname |
T.Name |
...args |
T.Any[] |
• fire: function
Defined in Interfaces.ts:20
▸ (rpcname
: T.Name, …args
: T.Any[]): Promise‹T.Any›
Parameters:
Name | Type |
---|---|
rpcname |
T.Name |
...args |
T.Any[] |
• hook: function
Defined in Interfaces.ts:17
▸ (rpcname
: T.Name, handler
: function): Socket
Parameters:
▪ rpcname: T.Name
▪ handler: function
▸ (…args
: any[]): any | Promise‹any›
Parameters:
Name | Type |
---|---|
...args |
any[] |
• on: T.OnFunction
Defined in Interfaces.ts:21
• port: number
Defined in Interfaces.ts:16
• unhook: function
Defined in Interfaces.ts:18
▸ (rpcname
: T.Name): Socket
Parameters:
Name | Type |
---|---|
rpcname |
T.Name |
▸ close(): void
Defined in Interfaces.ts:22
Returns: void
▸ destroy(): void
Inherited from Destroyable.destroy
Defined in Interfaces.ts:26
Returns: void