Protocols
In AMPS, Protocols
define the format of the commands that clients use to communicate with the server.
AMPS offers a range of preconfigured protocols. The recommended protocols for application connections are:
Protocol | Description |
---|---|
| Standard protocol for AMPS clients. |
| Standard protocol for websocket connections using the AMPS Javascript library. |
The Protocols
element configures options for a given protocol. The element is a container for one or more Protocol
elements. Each Protocol
is a combination of a Module
, that defines the basic protocol, and a set of options to configure the behavior of that basic protocol.
Many installations of AMPS have no need to configure a Protocols
block. When this is required, it is most common to need to specify the options used by the websocket
protocol to match the needs of the operating environment. See Websocket Options for more details.
Element | Description |
| The name to use for the customized Protocol. This name is used in the There is no default for this value. 60East recommends that the For example, a customized protocol that adjusts the behavior of the |
| This element defines the protocol module to customize. The By default, AMPS loads the following protocols:
AMPS provides the following protocols for backward compatibility. These protocols are supported for existing usage, but will not be enhanced with future protocol changes and do not support all features of the above protocols.
|
Websocket Options
The websocket
protocol accepts the following additional configuration options:
Element | Description |
| The type of authentication used for this protocol. This specifies how the connection will receive credentials from the connection. The
For example, to use basic authentication and set the realm to a value of |
| Specify whether connections that use this protocol should accept connections from clients that have successfully authenticated to the administrative interface. Default: |
| Specify that the server will return the custom header specified in response to a websocket request. A protocol of There is no default for this element. |
Last updated