[rpclibrary](../globals.md) › ["Interfaces"](../modules/_interfaces_.md) › [Socket](_interfaces_.socket.md) # Interface: Socket ## Hierarchy * [Destroyable](_interfaces_.destroyable.md) ↳ **Socket** ## Implemented by * [RPCSocket](../classes/_frontend_.rpcsocket.md) ## Index ### Properties * [call](_interfaces_.socket.md#call) * [fire](_interfaces_.socket.md#fire) * [hook](_interfaces_.socket.md#hook) * [on](_interfaces_.socket.md#on) * [port](_interfaces_.socket.md#port) * [unhook](_interfaces_.socket.md#unhook) ### Methods * [close](_interfaces_.socket.md#close) * [destroy](_interfaces_.socket.md#destroy) ## Properties ### call • **call**: *function* Defined in Interfaces.ts:13 #### Type declaration: ▸ (`rpcname`: T.Name, ...`args`: T.Any[]): *Promise‹T.Any›* **Parameters:** Name | Type | ------ | ------ | `rpcname` | T.Name | `...args` | T.Any[] | ___ ### fire • **fire**: *function* Defined in Interfaces.ts:14 #### Type declaration: ▸ (`rpcname`: T.Name, ...`args`: T.Any[]): *Promise‹T.Any›* **Parameters:** Name | Type | ------ | ------ | `rpcname` | T.Name | `...args` | T.Any[] | ___ ### hook • **hook**: *function* Defined in Interfaces.ts:11 #### Type declaration: ▸ (`rpcname`: T.Name, `handler`: function): *[Socket](_interfaces_.socket.md)* **Parameters:** ▪ **rpcname**: *T.Name* ▪ **handler**: *function* ▸ (...`args`: any[]): *any | Promise‹any›* **Parameters:** Name | Type | ------ | ------ | `...args` | any[] | ___ ### on • **on**: *T.OnFunction* Defined in Interfaces.ts:15 ___ ### port • **port**: *number* Defined in Interfaces.ts:10 ___ ### unhook • **unhook**: *function* Defined in Interfaces.ts:12 #### Type declaration: ▸ (`rpcname`: T.Name): *[Socket](_interfaces_.socket.md)* **Parameters:** Name | Type | ------ | ------ | `rpcname` | T.Name | ## Methods ### close ▸ **close**(): *void* Defined in Interfaces.ts:16 **Returns:** *void* ___ ### destroy ▸ **destroy**(): *void* *Inherited from [Destroyable](_interfaces_.destroyable.md).[destroy](_interfaces_.destroyable.md#destroy)* Defined in Interfaces.ts:20 **Returns:** *void*