N2O.JS

INTRO

The n2o.js module provides N2O protocol loop at JavaScript side. The size of n2o.js is 2120 bytes.

API

N2O_start()

This function creates a WebSocket raw connection to N2O WS and sends <<"N2O,",Token/binary>> text packet which invokes NITRO protocol page initialization.

token()

Returns current encrypted AES/CBC-128 session token.

ws.send(bert)

Sends raw binary to WebSocket. Use bert.js JavaScript encoder.

ws.send(enc(tuple(atom('direct'),atom('test'))))

$bert.protos

List of supported client loopers for particular BERT messages.

You may also want to read: utf8.js, heart.js, nitro.js, bert.js.