@@ -3,10 +3,10 @@ import {RpcCodec} from '../../common/codec/RpcCodec';
33import { RpcPersistentClient , StreamingRpcClient , WebSocketChannel } from '../../common' ;
44import { FetchRpcClient } from '../../common/rpc/client/FetchRpcClient' ;
55
6- const address = '3.92.169.31 ' ;
6+ const host = '54.204.106.133 ' ;
77
88export const setupDemoServerPersistentClient = ( codec : RpcCodec ) => {
9- const url = `ws://${ address } /rpc` ;
9+ const url = `ws://${ host } /rpc` ;
1010 const client = new RpcPersistentClient ( {
1111 codec,
1212 channel : {
@@ -24,7 +24,7 @@ export const setupDemoServerPersistentClient = (codec: RpcCodec) => {
2424} ;
2525
2626export const setupDemoServerFetchClient = ( codec : RpcCodec ) => {
27- const url = `http://${ address } /rpc` ;
27+ const url = `http://${ host } /rpc` ;
2828 const client = new FetchRpcClient ( {
2929 url,
3030 msgCodec : codec . msg ,
@@ -43,7 +43,7 @@ export const setupDemoServerStreamingClient = (codec: RpcCodec) => {
4343 const client = new StreamingRpcClient ( {
4444 send : async ( messages ) => {
4545 const port = + ( process . env . PORT || 9999 ) ;
46- const url = `http://${ address } /rpc` ;
46+ const url = `http://${ host } /rpc` ;
4747 codec . req . encoder . writer . reset ( ) ;
4848 codec . msg . encodeBatch ( codec . req , messages ) ;
4949 const body = codec . req . encoder . writer . flush ( ) ;
0 commit comments