NITRO

INTRO

The n2o_nitro module provides Nitrogen Web Framework protocol specification and implementation.

INIT

Init message invokes event(init) function in page module. There are two binary representations of INIT message.

-record(init, { token :: binary() }).
<<"N2O,",Token/binary>>

PICKLE

Pickle message sends to server prerendered (by server) encripted message.

-record(pickle, { source = [] :: [] | binary(), pickled = [] :: [] | binary(), args = [] :: list({atom(),any()}) }). -record(ev, { module = [] :: [] | atom(), msg = [] :: any(), trigger = [] :: [] | binary(), name = [] :: [] | binary() }).

DIRECT

Direct message sends data without any convertation or encription.

-record(direct, { data = [] :: any() }).

FLUSH

Flush message only redirects data to the socket.

-record(flush, { data = [] :: [] | list(#action{}) }).

You may also want to read: n2o_heart, n2o_ftp.