Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
add option for rpcEndpoint so filecoin can listen at /rpc/v0 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Jan 12, 2021
1 parent 1e4d72f commit a8e1adc
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/packages/core/src/options/server-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,24 @@ export const ServerOptions: Definitions<ServerConfig> = {
normalize,
shortDescription: "Enable a websocket server.",
default: () => true,
legacyName: "ws"
legacyName: "ws",
cliType: "boolean",
cliAliases: []
},
wsBinary: {
normalize,
shortDescription:
"Whether or not websockets should response with binary data (ArrayBuffers) or strings.",
default: () => "auto"
default: () => "auto",
cliChoices: [true, false, "auto"] as any[]
},
rpcEndpoint: {
normalize,
shortDescription:
"Defines the endpoint route the HTTP and WebSocket servers will listen on.",
default: () => "/",
defaultDescription: "'/rpc/v0' for Filecoin, '/' otherwise",
cliType: "string"
},
rpcEndpoint: {
normalize,
Expand Down

0 comments on commit a8e1adc

Please sign in to comment.