Enum ExecutionMode
- Namespace
- Signal.Domain
- Assembly
- Signal.Domain.dll
Execution mode of the signal-cli-rest-api container, i.e. the value of its MODE environment variable.
public enum ExecutionMode
Fields
JsonRpc = 2json-rpc: a long-running signal-cli daemon (JVM). Fastest; messages are pushed over a WebSocket.JsonRpcNative = 3json-rpc-native: the JSON-RPC daemon running as a GraalVM native image. Messages are pushed over a WebSocket.Native = 1native: like Normal, but uses the GraalVM native image of signal-cli (faster start-up). Messages are received by HTTP polling.Normal = 0normal: signal-cli is started (JVM) for every request. Slowest; messages are received by HTTP polling.
Remarks
The mode decides how Signal.NET receives messages: the Normal and Native modes expose
GET /v1/receive/{number} as a plain HTTP endpoint that must be polled, whereas the
JsonRpc and JsonRpcNative modes upgrade the same endpoint to a WebSocket that pushes
envelopes as they arrive. Sending and all other endpoints behave identically in every mode.
The configured mode must match the container; see SignalOptions.Mode.