Enum ConnectionMode
- Namespace
- DuetAPI.Connection
- Assembly
- DuetAPI.dll
Supported connection types for client connections
[JsonConverter(typeof(JsonStringEnumConverter<ConnectionMode>))]
public enum ConnectionMode
Fields
CodeStream = 4Code stream mode. This mode lets users send and receive code replies asynchronously using a single socket connection
Command = 1Command mode. This allows clients to send general purpose messages to the control server like G-codes or requests of the full object model
Intercept = 2Interception mode. This allows clients to intercept G/M/T-codes before or after they are initially processed
PluginService = 5Plugin service mode. This mode is used internally and should not be used by third-party plugins!
Subscribe = 3Subscription mode. In this mode object model updates are transmitted to the client after each update
Unknown = 0Unknown connection type. If this is used, the connection is immediately terminated