|
@@ -18,7 +18,7 @@
|
18
|
18
|
|
19
|
19
|
▸ **extractArgs**(`f`: Function): *T.Arg[]*
|
20
|
20
|
|
21
|
|
-Defined in Utils.ts:96
|
|
21
|
+Defined in Utils.ts:102
|
22
|
22
|
|
23
|
23
|
**Parameters:**
|
24
|
24
|
|
|
@@ -34,7 +34,7 @@ ___
|
34
|
34
|
|
35
|
35
|
▸ **hookGenerator**(`rpc`: T.HookRPC‹any›): *function*
|
36
|
36
|
|
37
|
|
-Defined in Utils.ts:75
|
|
37
|
+Defined in Utils.ts:81
|
38
|
38
|
|
39
|
39
|
**Parameters:**
|
40
|
40
|
|
|
@@ -58,7 +58,7 @@ ___
|
58
|
58
|
|
59
|
59
|
▸ **makeSubResponse**(`uuid?`: undefined | string): *[SubscriptionResponse](_types_.md#subscriptionresponse)*
|
60
|
60
|
|
61
|
|
-Defined in Utils.ts:101
|
|
61
|
+Defined in Utils.ts:107
|
62
|
62
|
|
63
|
63
|
**Parameters:**
|
64
|
64
|
|
|
@@ -74,7 +74,9 @@ ___
|
74
|
74
|
|
75
|
75
|
▸ **rpcHooker**<**SubResT**>(`socket`: [Socket](../interfaces/_interfaces_.socket.md), `exporter`: [Exporter](../interfaces/_interfaces_.exporter.md)‹SubResT›, `makeUnique`: boolean): *T.ExtendedRpcInfo[]*
|
76
|
76
|
|
77
|
|
-Defined in Utils.ts:53
|
|
77
|
+Defined in Utils.ts:59
|
|
78
|
+
|
|
79
|
+Utility function to apply the RPCs of an [Exporter](../interfaces/_interfaces_.exporter.md).
|
78
|
80
|
|
79
|
81
|
**Type parameters:**
|
80
|
82
|
|
|
@@ -82,11 +84,11 @@ Defined in Utils.ts:53
|
82
|
84
|
|
83
|
85
|
**Parameters:**
|
84
|
86
|
|
85
|
|
-Name | Type | Default |
|
86
|
|
------- | ------ | ------ |
|
87
|
|
-`socket` | [Socket](../interfaces/_interfaces_.socket.md) | - |
|
88
|
|
-`exporter` | [Exporter](../interfaces/_interfaces_.exporter.md)‹SubResT› | - |
|
89
|
|
-`makeUnique` | boolean | true |
|
|
87
|
+Name | Type | Default | Description |
|
|
88
|
+------ | ------ | ------ | ------ |
|
|
89
|
+`socket` | [Socket](../interfaces/_interfaces_.socket.md) | - | The websocket (implementation: bsock) to hook on |
|
|
90
|
+`exporter` | [Exporter](../interfaces/_interfaces_.exporter.md)‹SubResT› | - | The exporter |
|
|
91
|
+`makeUnique` | boolean | true | @default true Attach a suffix to RPC names |
|
90
|
92
|
|
91
|
93
|
**Returns:** *T.ExtendedRpcInfo[]*
|
92
|
94
|
|