View Source Hologram.Socket.Decoder (hologram v0.2.0)

Summary

Functions

Returns the atoms whitelist related to client DOM events.

Decodes a term serialized by the client and pre-decoded from JSON.

Functions

atoms_whitelist()

@spec atoms_whitelist() :: [atom()]

Returns the atoms whitelist related to client DOM events.

decode(term)

@spec decode(map() | String.t()) :: any()

Decodes a term serialized by the client and pre-decoded from JSON.