Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

feat: net "targets" (aka. served connection swapping) #983

Merged
merged 21 commits into from
May 15, 2023

Conversation

harrysolovay
Copy link
Contributor

Resolves #925

Enables hot-swapping of underlying connection via nets.ts setup + --target arg passed to serve.

export const polkadot = net.ws({
  url: "wss://rpc.polkadot.io/",
+ targets: { dev: polkadotDev },
})

Then...

capi serve --target dev -- deno run -A ./my_script.ts

@harrysolovay harrysolovay requested a review from tjjfvi as a code owner May 10, 2023 14:27
@harrysolovay harrysolovay changed the title net target / connection specificity feat: net target / connection specificity May 10, 2023
@harrysolovay harrysolovay reopened this May 10, 2023
@harrysolovay harrysolovay changed the title feat: net target / connection specificity feat: net "targets" (aka. served connection swapping) May 10, 2023
.vscode/settings.json Outdated Show resolved Hide resolved
Readme.md Outdated Show resolved Hide resolved
Readme.md Outdated Show resolved Hide resolved
server/CodegenSpec.ts Outdated Show resolved Hide resolved
@harrysolovay harrysolovay requested a review from tjjfvi May 11, 2023 14:55
@deno-deploy deno-deploy bot requested a deployment to Preview May 12, 2023 14:38 Abandoned
@harrysolovay harrysolovay removed this pull request from the merge queue due to a manual request May 15, 2023
@harrysolovay harrysolovay added this pull request to the merge queue May 15, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 15, 2023
@harrysolovay harrysolovay added this pull request to the merge queue May 15, 2023
Merged via the queue into main with commit cd9cffd May 15, 2023
@harrysolovay harrysolovay deleted the dev-net-targets branch May 15, 2023 16:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

devnet <-> prod net toggling story
4 participants