pixie v0.3.9 Pixie.Message.Connect

Convert an incoming connect message into a struct.

Request
MUST include:  * channel
               * clientId
               * connectionType
MAY include:   * ext
               * id

This struct contains the following keys:

  • :channel always "/meta/connect".
  • :client_id the client ID generated by the server during handshake.
  • :connection_type the connection type (transport) the client would like to use, based on the server’s presented options during handshake.
  • :ext an arbitrary map of data the client sent for use in extensions (usually authentication information, etc). Optional.
  • :id a message ID generated by the client. Optional.

Summary

Functions

Convert the incoming message into a Pixie.Message.Connect by copying only those fields we care about

Functions

init(message)

Convert the incoming message into a Pixie.Message.Connect by copying only those fields we care about.