The server library for Riddlet, the anonymous chat app. A simple, upgradable wrapper for Socket.IO.
Setup is very simple just npm install --save riddlet-server
.
Note: nsure you have a C++11 compiler available (available in GCC 4.9+). This allows for node-gyp to build the hashtable dependency that fast-ratelimit and riddlet depends on. (Windows: you may have to install build tools globally using: npm install -g windows-build-tools
to be able to compile)
Here are two simple examples of how you can run Riddlet.
var http = require('http');
app = http.createServer();
var riddlet = require("riddlet-server").Riddlet(app)
const port = process.env.port || 8080;
app.listen(port);
console.log("http listening on port ", port);
process.on("uncaughtException", function(err) {
console.log("Caught exception: ", err);
});
var riddlet = require("riddlet-server").Riddlet() // runs on either process.env.port or 8000
process.on("uncaughtException", function(err) {
console.log("Caught exception: ", err);
});
Connecting to your server is simple. Just open up the Riddlet web client located here and enter the URL for for your Riddlet server, including the port if necessary. (ie. http://123.456.78.90:8080
) then press "Connect to Server"
Report issues to the issues tab on GitHub (go here)
- OTR (Off the record messaging)
- Implement crypto library inside the web app and server
- Allow for usage of sending all messages through an encrypted medium - diffrent keys for different clients
-
Client key changes each use of server(Removed due to redundancy)
- Small features
- Allow for more customization of the Riddlet platform with adapters/plugins
- Allow for overriding of the message handler through adapters
- Allow for overriding of the authentication system through adapters
- Allow for async usage of adapter methods
- Allow for more customization of the Riddlet platform with adapters/plugins
- Nicknames
- Custom avatars
- Private messaging
- Notifications