pixie v0.3.9 Pixie.Message.Publish
Convert an incoming message publication into a struct.
Request
MUST include: * channel
* data
MAY include: * clientId
* id
* ext
This struct contains the following keys:
:channel
the channel the client wishes to publish the message to.:data
an arbitrary value passed from the client via JSON as the contents of the message. Usually aList
orMap
.:client_id
the client ID generated by the server during handshake. According to the Bayeux protocol this field is optional, however Pixie will not accept publications from non-connected clients.: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.Publish
by copying
only those fields we care about
Functions
Convert the incoming message into a Pixie.Message.Publish
by copying
only those fields we care about.