├── .dockerignore ├── .gitignore ├── .jshintrc ├── .npmignore ├── .travis.yml ├── CONTRIBUTING.md ├── Dockerfile ├── Dockerfile-rpi ├── Dockerfile-rpi-hub ├── HISTORY.md ├── README.md ├── bin └── mosca ├── examples ├── Server_With_All_Interfaces-Settings.js ├── kafka │ ├── Dockerfile │ ├── README.md │ ├── auth.json │ ├── index.html │ └── server.js ├── mongodb │ ├── config.js │ └── start.js ├── mosca-tree │ ├── README.md │ ├── firstConfig.js │ ├── secondConfig.js │ └── thirdConfig.js ├── redis │ ├── README.md │ ├── firstConfig.js │ └── secondConfig.js ├── rule_engine │ ├── README.md │ └── broker.js ├── secure │ ├── secureClient.js │ ├── secureEmbedded.js │ └── secureServer.js └── ws │ ├── index.html │ └── start.sh ├── index.js ├── lib ├── authorizer.js ├── cli.js ├── client.js ├── interfaces.js ├── options.js ├── persistence │ ├── abstract.js │ ├── index.js │ ├── levelup.js │ ├── matcher.js │ ├── memory.js │ ├── mongo.js │ ├── redis.js │ └── utils.js ├── serializers.js ├── server.js └── stats.js ├── package.json ├── public └── .gitkeep ├── publish_docs.sh └── test ├── abstract_server.js ├── authorizer.js ├── cli.js ├── common.js ├── credentials.json ├── helpers ├── createConnection.js ├── createSecureConnection.js ├── createSecureWebsocketConnection.js └── createWebsocketConnection.js ├── mocha.opts ├── options.js ├── persistence ├── abstract.js ├── levelup_spec.js ├── memory_spec.js ├── mongo_spec.js ├── redis_spec.js └── utils_spec.js ├── sample_config.js ├── secure ├── tls-cert.pem └── tls-key.pem ├── server.js ├── server_error.js ├── server_mongo.js ├── server_redis.js ├── server_secure.js ├── server_websocket.js ├── server_websocket_attach.js ├── server_websocket_secure.js ├── static ├── index.html └── test └── stats.js /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | db 3 | dump.rdb 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/.gitignore -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/.jshintrc -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/Dockerfile -------------------------------------------------------------------------------- /Dockerfile-rpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/Dockerfile-rpi -------------------------------------------------------------------------------- /Dockerfile-rpi-hub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/Dockerfile-rpi-hub -------------------------------------------------------------------------------- /HISTORY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/HISTORY.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/README.md -------------------------------------------------------------------------------- /bin/mosca: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/bin/mosca -------------------------------------------------------------------------------- /examples/Server_With_All_Interfaces-Settings.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/Server_With_All_Interfaces-Settings.js -------------------------------------------------------------------------------- /examples/kafka/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/kafka/Dockerfile -------------------------------------------------------------------------------- /examples/kafka/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/kafka/README.md -------------------------------------------------------------------------------- /examples/kafka/auth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/kafka/auth.json -------------------------------------------------------------------------------- /examples/kafka/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/kafka/index.html -------------------------------------------------------------------------------- /examples/kafka/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/kafka/server.js -------------------------------------------------------------------------------- /examples/mongodb/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/mongodb/config.js -------------------------------------------------------------------------------- /examples/mongodb/start.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/mongodb/start.js -------------------------------------------------------------------------------- /examples/mosca-tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/mosca-tree/README.md -------------------------------------------------------------------------------- /examples/mosca-tree/firstConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/mosca-tree/firstConfig.js -------------------------------------------------------------------------------- /examples/mosca-tree/secondConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/mosca-tree/secondConfig.js -------------------------------------------------------------------------------- /examples/mosca-tree/thirdConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/mosca-tree/thirdConfig.js -------------------------------------------------------------------------------- /examples/redis/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/redis/README.md -------------------------------------------------------------------------------- /examples/redis/firstConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/redis/firstConfig.js -------------------------------------------------------------------------------- /examples/redis/secondConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/redis/secondConfig.js -------------------------------------------------------------------------------- /examples/rule_engine/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/rule_engine/README.md -------------------------------------------------------------------------------- /examples/rule_engine/broker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/rule_engine/broker.js -------------------------------------------------------------------------------- /examples/secure/secureClient.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/secure/secureClient.js -------------------------------------------------------------------------------- /examples/secure/secureEmbedded.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/secure/secureEmbedded.js -------------------------------------------------------------------------------- /examples/secure/secureServer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/secure/secureServer.js -------------------------------------------------------------------------------- /examples/ws/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/ws/index.html -------------------------------------------------------------------------------- /examples/ws/start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/examples/ws/start.sh -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/index.js -------------------------------------------------------------------------------- /lib/authorizer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/authorizer.js -------------------------------------------------------------------------------- /lib/cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/cli.js -------------------------------------------------------------------------------- /lib/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/client.js -------------------------------------------------------------------------------- /lib/interfaces.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/interfaces.js -------------------------------------------------------------------------------- /lib/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/options.js -------------------------------------------------------------------------------- /lib/persistence/abstract.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/persistence/abstract.js -------------------------------------------------------------------------------- /lib/persistence/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/persistence/index.js -------------------------------------------------------------------------------- /lib/persistence/levelup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/persistence/levelup.js -------------------------------------------------------------------------------- /lib/persistence/matcher.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/persistence/matcher.js -------------------------------------------------------------------------------- /lib/persistence/memory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/persistence/memory.js -------------------------------------------------------------------------------- /lib/persistence/mongo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/persistence/mongo.js -------------------------------------------------------------------------------- /lib/persistence/redis.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/persistence/redis.js -------------------------------------------------------------------------------- /lib/persistence/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/persistence/utils.js -------------------------------------------------------------------------------- /lib/serializers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/serializers.js -------------------------------------------------------------------------------- /lib/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/server.js -------------------------------------------------------------------------------- /lib/stats.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/lib/stats.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/package.json -------------------------------------------------------------------------------- /public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /publish_docs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/publish_docs.sh -------------------------------------------------------------------------------- /test/abstract_server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/abstract_server.js -------------------------------------------------------------------------------- /test/authorizer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/authorizer.js -------------------------------------------------------------------------------- /test/cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/cli.js -------------------------------------------------------------------------------- /test/common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/common.js -------------------------------------------------------------------------------- /test/credentials.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/credentials.json -------------------------------------------------------------------------------- /test/helpers/createConnection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/helpers/createConnection.js -------------------------------------------------------------------------------- /test/helpers/createSecureConnection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/helpers/createSecureConnection.js -------------------------------------------------------------------------------- /test/helpers/createSecureWebsocketConnection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/helpers/createSecureWebsocketConnection.js -------------------------------------------------------------------------------- /test/helpers/createWebsocketConnection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/helpers/createWebsocketConnection.js -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/mocha.opts -------------------------------------------------------------------------------- /test/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/options.js -------------------------------------------------------------------------------- /test/persistence/abstract.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/persistence/abstract.js -------------------------------------------------------------------------------- /test/persistence/levelup_spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/persistence/levelup_spec.js -------------------------------------------------------------------------------- /test/persistence/memory_spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/persistence/memory_spec.js -------------------------------------------------------------------------------- /test/persistence/mongo_spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/persistence/mongo_spec.js -------------------------------------------------------------------------------- /test/persistence/redis_spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/persistence/redis_spec.js -------------------------------------------------------------------------------- /test/persistence/utils_spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/persistence/utils_spec.js -------------------------------------------------------------------------------- /test/sample_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/sample_config.js -------------------------------------------------------------------------------- /test/secure/tls-cert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/secure/tls-cert.pem -------------------------------------------------------------------------------- /test/secure/tls-key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/secure/tls-key.pem -------------------------------------------------------------------------------- /test/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/server.js -------------------------------------------------------------------------------- /test/server_error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/server_error.js -------------------------------------------------------------------------------- /test/server_mongo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/server_mongo.js -------------------------------------------------------------------------------- /test/server_redis.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/server_redis.js -------------------------------------------------------------------------------- /test/server_secure.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/server_secure.js -------------------------------------------------------------------------------- /test/server_websocket.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/server_websocket.js -------------------------------------------------------------------------------- /test/server_websocket_attach.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/server_websocket_attach.js -------------------------------------------------------------------------------- /test/server_websocket_secure.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/server_websocket_secure.js -------------------------------------------------------------------------------- /test/static/index.html: -------------------------------------------------------------------------------- 1 | Hello World 2 | -------------------------------------------------------------------------------- /test/static/test: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /test/stats.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moscajs/mosca/HEAD/test/stats.js --------------------------------------------------------------------------------