Pixie.Message

This module handles dispatch of incoming messages to their corresponding message structs.

Summary

Functions

Take message (the map output from JSON decoding) and apply the following transformations:

Functions

init(message)

Take message (the map output from JSON decoding) and apply the following transformations:

  • Convert all keys to lower case.
  • Convert all keys to atoms.

Then dispatch to the correct message module, based on message type.