From 46d97a25d7fafa9c394320a368358c9dd4d6ec79 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 31 May 2024 08:58:13 +0200 Subject: [PATCH] export server --- libs/remix-simulator/src/index.ts | 1 + libs/remix-simulator/src/server.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/remix-simulator/src/index.ts b/libs/remix-simulator/src/index.ts index e49f4baf86..038ef9308e 100644 --- a/libs/remix-simulator/src/index.ts +++ b/libs/remix-simulator/src/index.ts @@ -1 +1,2 @@ export { Provider, extend, JSONRPCRequestPayload, JSONRPCResponsePayload, JSONRPCResponseCallback } from './provider' +export * as Server from './server' diff --git a/libs/remix-simulator/src/server.ts b/libs/remix-simulator/src/server.ts index 15636cac5a..cdd5bf09e2 100644 --- a/libs/remix-simulator/src/server.ts +++ b/libs/remix-simulator/src/server.ts @@ -58,9 +58,11 @@ class Server { } app.listen(port, host, () => { - log('Remix Simulator listening on ws://' + host + ':' + port) if (!this.rpcOnly) { + log('Remix Simulator listening on ws://' + host + ':' + port) log('http json-rpc is deprecated and disabled by default. To enable it use --rpc') + } else { + log('Remix Simulator listening on http://' + host + ':' + port) } }) }