├── .gitignore ├── .travis.yml ├── LICENSE ├── Makefile ├── README.md ├── index.js ├── lib ├── connection.js ├── engine.js ├── patches.js ├── protocol │ ├── 1.js │ ├── index.js │ └── protocolstream.js ├── red.js ├── transports │ ├── eventsource.js │ ├── flashsocket.js │ ├── htmlfile.js │ ├── index.js │ ├── jsonp.js │ ├── transport.js │ ├── websocket.js │ └── xhr.js └── utils.js ├── package.json ├── square.json └── tests ├── common.js ├── engine.test.js ├── fixtures └── protocol.small.txt ├── protocol.1.test.js ├── red.test.js ├── ssl ├── red-cert.pem ├── red-csr.pem └── red-key.pem └── utils.test.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/README.md -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/index.js -------------------------------------------------------------------------------- /lib/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/connection.js -------------------------------------------------------------------------------- /lib/engine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/engine.js -------------------------------------------------------------------------------- /lib/patches.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/patches.js -------------------------------------------------------------------------------- /lib/protocol/1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/protocol/1.js -------------------------------------------------------------------------------- /lib/protocol/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/protocol/index.js -------------------------------------------------------------------------------- /lib/protocol/protocolstream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/protocol/protocolstream.js -------------------------------------------------------------------------------- /lib/red.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/red.js -------------------------------------------------------------------------------- /lib/transports/eventsource.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/transports/eventsource.js -------------------------------------------------------------------------------- /lib/transports/flashsocket.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/transports/flashsocket.js -------------------------------------------------------------------------------- /lib/transports/htmlfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/transports/htmlfile.js -------------------------------------------------------------------------------- /lib/transports/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/transports/index.js -------------------------------------------------------------------------------- /lib/transports/jsonp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/transports/jsonp.js -------------------------------------------------------------------------------- /lib/transports/transport.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/transports/transport.js -------------------------------------------------------------------------------- /lib/transports/websocket.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/transports/websocket.js -------------------------------------------------------------------------------- /lib/transports/xhr.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/transports/xhr.js -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/lib/utils.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/package.json -------------------------------------------------------------------------------- /square.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/square.json -------------------------------------------------------------------------------- /tests/common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/tests/common.js -------------------------------------------------------------------------------- /tests/engine.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/tests/engine.test.js -------------------------------------------------------------------------------- /tests/fixtures/protocol.small.txt: -------------------------------------------------------------------------------- 1 | 4#1#26#[1,2,3,"foo","bar"]4#1#12#"pew" 2 | -------------------------------------------------------------------------------- /tests/protocol.1.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/tests/protocol.1.test.js -------------------------------------------------------------------------------- /tests/red.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/tests/red.test.js -------------------------------------------------------------------------------- /tests/ssl/red-cert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/tests/ssl/red-cert.pem -------------------------------------------------------------------------------- /tests/ssl/red-csr.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/tests/ssl/red-csr.pem -------------------------------------------------------------------------------- /tests/ssl/red-key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/tests/ssl/red-key.pem -------------------------------------------------------------------------------- /tests/utils.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/observing/red/HEAD/tests/utils.test.js --------------------------------------------------------------------------------