Class ClientInitMessage
- Namespace
- DuetAPI.Connection.InitMessages
- Assembly
- DuetAPI.dll
An instance of this class is sent from the client to the server as a response to the ServerInitMessage. It allows a client to select the connection mode (ConnectionMode).
[JsonDerivedType(typeof(CodeStreamInitMessage))]
[JsonDerivedType(typeof(CommandInitMessage))]
[JsonDerivedType(typeof(InterceptInitMessage))]
[JsonDerivedType(typeof(PluginServiceInitMessage))]
[JsonDerivedType(typeof(SubscribeInitMessage))]
public class ClientInitMessage : InitMessage
- Inheritance
-
ClientInitMessage
- Derived
- Inherited Members
Constructors
ClientInitMessage()
public ClientInitMessage()
Properties
Mode
Desired mode of the new connection
public ConnectionMode Mode { get; set; }
Property Value
Version
Version number of the client-side API
public int Version { get; set; }
Property Value
Remarks
If this version is incompatible to DCS, a IncompatibleVersionException is returned when a connection is being established
- See Also