RPCWebSocketServer

This commit is contained in:
Julien Valverdé
2024-07-09 02:15:18 +02:00
parent 3ac12bfe3e
commit c25c525d6f
8 changed files with 55 additions and 24 deletions

View File

@@ -0,0 +1,8 @@
import { Config } from "effect"
export const httpPort = Config.number("HTTP_PORT").pipe(Config.withDefault(8080))
export const websocketPort = Config.number("WEBSOCKET_PORT").pipe(Config.withDefault(3001))
export const rpcHTTPRoot = Config.string("RPC_HTTP_ROOT").pipe(Config.withDefault("/rpc"))
export const rpcHTTPPlaygroundRoot = Config.string("RPC_HTTP_PLAYGROUND_ROOT").pipe(Config.withDefault("/rpc/playground"))