reichat-server
The real-time paint chat server for reichat.
Build
$ npm install$ npm run tsd reinstall$ npm run tsd rebundle$ npm run build
Example
var util = ;var path = ;var os = ;var reichatServer = ; // All settings are optional.var config = title: 'PaintChat' canvasWidth: 1920 canvasHeight: 1080 layerCount: 3// recommended up to 3. // HTTP server for distributing chat client app. clientDir: __dirname 'www' clientVersion: '0.0.0' // File System options. dataDir: ostmpDir// if supplied, chat session will persist. dataFilePrefix: 'reichat_exampleroom_001_' // Redis options. () redisHost: 'localhost'// if supplied, activate Redis communication. (will disable saving to File System) redisPort: 6379 redisPassword: '' redisKeyPrefix: 'reichat:exampleroom#001:'// for shared Redis. // for security forwardedHeaderType: 'XFF'// use in trusted proxy; reichatServer;