Language

SocketModeOptions Class

Definition

Configures Socket Mode, where the bot receives activities over outbound WebSocket connections instead of an inbound HTTP endpoint.

public sealed class SocketModeOptions
type SocketModeOptions = class
Public NotInheritable Class SocketModeOptions
Inheritance
SocketModeOptions

Remarks

Socket Mode opens one connection per geo and waits until every geo is ready before the host finishes starting. It is supported only in the public cloud, and runs on a host without a web server (Host.CreateApplicationBuilder). Settings are validated when the host starts. Socket Mode is experimental: the API is in preview and may change, and it is recommended only for developing agents. Socket Mode is currently only available for new bots.

Constructors

Name Description
SocketModeOptions()

Properties

Name Description
Geos

Gets or sets the geos to connect, one connection each. An empty string connects to the base URL without a geo segment. Defaults to amer, emea, and apac. Override this to connect to a different set of geos.

NegotiateBaseUrl

Gets or sets the base URL used to negotiate each geo connection. Must use HTTPS unless it targets loopback. Defaults to https://botapi.skype.com. Override this to target a different Teams backend service ring.

Applies to