Skip to content

Commit 123cd6e

Browse files
committed
chore: 🤖 update demo server scripts/tests
1 parent c2daf6a commit 123cd6e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"demo:e2e:json-crdt-server:http1": "ts-node src/__demos__/json-crdt-server/main-http1.ts",
5757
"demo:e2e:json-crdt-server:uws": "ts-node src/__demos__/json-crdt-server/main-uws.ts",
5858
"start:json-crdt-server:http1": "NODE_ENV=production PORT=80 JSON_CRDT_STORE=level pm2 start lib/__demos__/json-crdt-server/main-http1.js",
59-
"start": "NODE_ENV=production PORT=80 JSON_CRDT_STORE=level pm2 start lib/__demos__/json-crdt-server/main-http1.js",
59+
"start": "NODE_ENV=production PORT=80 JSON_CRDT_STORE=level pm2 start lib/__demos__/json-crdt-server/main-http1.js --exp-backoff-restart-delay=100",
6060
"coverage": "yarn test --collectCoverage",
6161
"typedoc": "typedoc",
6262
"build:pages": "rimraf gh-pages && mkdir -p gh-pages && cp -r typedocs/* gh-pages && cp -r coverage gh-pages/coverage",

src/__tests__/e2e/demo-client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import {RpcCodec} from '../../common/codec/RpcCodec';
33
import {RpcPersistentClient, StreamingRpcClient, WebSocketChannel} from '../../common';
44
import {FetchRpcClient} from '../../common/rpc/client/FetchRpcClient';
55

6-
const address = '3.92.169.31';
6+
const host = '54.204.106.133';
77

88
export 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

2626
export 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

Comments
 (0)