Skip to content

WIP: self-hosted socket mode and http mode#82

Draft
vegeris wants to merge 2 commits intomainfrom
evegeris-self-hosted-rosi
Draft

WIP: self-hosted socket mode and http mode#82
vegeris wants to merge 2 commits intomainfrom
evegeris-self-hosted-rosi

Conversation

@vegeris
Copy link
Copy Markdown
Contributor

@vegeris vegeris commented Jan 20, 2026

This PR is being broken out to separate updates for socket mode from HTTP mode


Summary

Entrypoints for running Deno apps via an SDK-managed socket connection or via HTTP mode

Testing

Check out this branch. Create a new Deno app via the template (slack-public create --template https://github.com/slack-samples/deno-starter-template) and update the .slack/hooks.json file with the following (socket mode):

{
  "hooks": {
    "get-hooks": "deno run -q --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.5.0/mod.ts",
    "start": "deno run -q --config=deno.jsonc --allow-read --allow-net --allow-run --allow-env --allow-sys=osRelease file:///Users/evegeris//dev/deno-slack-runtime/src/self-hosted-socket-mode.ts"
  },
  "config": {
    "sdk-managed-connection-enabled": true
  }
}

or with "start": "deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env --allow-sys=osRelease file:///your/filepath/src/self-hosted-http-mode.ts" to test HTTP mode

Run the app in socket mode without the CLI by setting an app token environment variable (export SLACK_APP_TOKEN=... and optionally, export SLACK_BOT_TOKEN=..., export SLACK_API_URL=https://dev.slack.com/api) and running the Deno command directly; deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env --allow-run --allow-sys file:///Users/evegeris//dev/deno-slack-runtime/src/self-hosted-socket-mode.ts

Requirements

@vegeris vegeris force-pushed the evegeris-self-hosted-rosi branch 4 times, most recently from 0d95e29 to d88806d Compare February 6, 2026 18:01
@vegeris vegeris force-pushed the evegeris-self-hosted-rosi branch 2 times, most recently from 96ce83d to 6f10b9d Compare February 9, 2026 15:59
@vegeris vegeris force-pushed the evegeris-self-hosted-rosi branch from 6f10b9d to a77ec51 Compare February 9, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant