large_payload_ack

command
v0.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

This example demonstrates Socket Mode's behavior with large Ack payloads.

Slack's Socket Mode silently drops WebSocket responses that are 20KB or larger. The library detects this and returns an error from Ack().

To run:

export SLACK_APP_TOKEN=xapp-...
export SLACK_BOT_TOKEN=xoxb-...
go run examples/socketmode/large_payload_ack/large_payload_ack.go

Then use your slash command with a byte count as the argument:

/your-command 1000     -> small payload, works
/your-command 19000    -> near the 20KB limit, works
/your-command 21000    -> over the limit, Ack() returns an error
/your-command          -> defaults to 100 bytes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL