File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/reactive-rpc/common/testing Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,25 @@ export interface BuildE2eClientOptions {
6464 * values. Defaults to `[0, 0]`.
6565 */
6666 clientBufferTime ?: [ min : number , max : number ] ;
67+
68+ /**
69+ * IP address to use for the connection. Defaults to `0.0.0.0`.
70+ */
71+ ip ?: string ;
72+
73+ /**
74+ * Authentication token to use for the connection. Defaults to empty string.
75+ */
76+ token ?: string ;
6777}
6878
6979export const buildE2eClient = < T = RpcClient > ( opt : BuildE2eClientOptions ) => {
7080 const caller = opt . caller ;
7181 const writer = opt . writer ?? new Writer ( Fuzzer . randomInt2 ( opt . writerDefaultBufferKb ?? [ 4 , 4 ] ) * 1024 ) ;
7282 const codecs = new RpcCodecs ( new Codecs ( writer ) , new RpcMessageCodecs ( ) ) ;
7383 const ctx = new ConnectionContext (
74- '0.0.0.0' ,
75- '' ,
84+ opt . ip ?? '0.0.0.0' ,
85+ opt . ip ?? '' ,
7686 null ,
7787 { } ,
7888 codecs . value . cbor ,
You can’t perform that action at this time.
0 commit comments