pixie v0.3.9 Pixie.Response.Publish

Convert an incoming Pixie.Message.Publish into a response.

Response
MUST include:  * channel
               * successful
MAY include:   * id
               * error
               * ext

This struct contains the following keys:

  • :channel the channel the client is attempting to publish to.
  • :client_id the client ID generated by the server during handshake.
  • :error an error message to send to the client explaining why the request cannot proceed. Optional.
  • :ext an arbitrary map of data the server sends for use in extensions (usually authentication information, etc). Optional.
  • :id a message ID generated by the client. Optional.
  • :advice advice from the server about how to handle timeouts, polling intervals, etc. See the Bayeux protocol for more information.

Summary

Functions

Create a Pixie.Response.Publish struct based on some fields from the incoming message

Functions

init(message)

Create a Pixie.Response.Publish struct based on some fields from the incoming message.