Open (socketmode/socketmode.go)

slack · socketmode/socketmode.go · go · BSD-2-Clause
realtime

Provides a Socket Mode client for Slack, exposing connection handling and event types.

// Source: https://github.com/slack-go/slack | License: BSD-2-Clause | Copyright 2015, Norberto Lopes
// Provided via justclaw.it.com; keep this notice with the code.
package socketmode

import (
	"context"
	"log"
	"os"
	"time"

	"github.com/gorilla/websocket"

	"github.com/slack-go/slack"
)

// EventType is the type of events that are emitted by scoketmode.Client.
// You receive and handle those events from a socketmode.Client.Events channel.
// Those event types does not necessarily match 1:1 to those of Slack Events API events.
type EventType string

const (
	// The following request types are the types of requests sent from Slack via Socket Mode WebSocket connection
	// and handled internally by the socketmode.Client.
	// The consumer of socketmode.Client will never see it.

	RequestTy

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key