pixie v0.3.9 Pixie.Response.Handshake
Convert an incoming Pixie.Message.Handshake into a response.
Success Response Failed Response
MUST include: * channel MUST include: * channel
* version * successful
* supportedConnectionTypes * error
* clientId MAY include: * supportedConnectionTypes
* successful * advice
MAY include: * minimumVersion * version
* advice * minimumVersion
* ext * ext
* id * id
* authSuccessful
The struct contains the following keys:
:channelalways"/meta/handshake".:versionthe Bayeux protocol version supported by the server.:supported_connection_typesthe union of transports between the client’s supported connection types and the server’s enabled types.:client_idthe client ID generated by the server during handshake.:erroran error message to send to the client explaining why the request cannot proceed. Optional.:minimum_versionthe minimum Bayeux protocol version supported by the server.:adviceadvice from the server about how to handle timeouts, polling intervals, etc. See the Bayeux protocol for more information.:extan arbitrary map of data the server sends for use in extensions (usually authentication information, etc). Optional.:ida message ID generated by the client. Optional.:auth_successfuleithertrueorfalse. Optional.
Summary
Functions
Create a Pixie.Response.Handshake struct based on some fields from the
incoming message
Functions
Create a Pixie.Response.Handshake struct based on some fields from the
incoming message.