-
Notifications
You must be signed in to change notification settings - Fork 456
REST API
Joseph Gentle edited this page Jul 16, 2014
·
5 revisions
This page (and the REST endpoint) has moved to its own repository at share/rest
var connect = require(‘connect’), sharejs = require(‘share’).server;
var server = connect( connect.logger(), connect.static(__dirname + ‘/public’) ); var options = {db: {type: ‘none’}}; // See docs for options. {type: ‘redis’} to enable persistance.
// Attach the sharejs REST and Socket.io interfaces to the server sharejs.attach(server, options);
server.listen(8000, function(){ console.log(‘Server running at http://127.0.0.1:8000/’); });*** * ![1000015332](https://github.com/josephg/ShareJS/assets/170631456/cbf03d1e-a278-449a-a0c1-afb388b9a203) *