Questions tagged [share.js]

ShareJS is an Operational Transform library for NodeJS & browsers. It lets you easily do live concurrent editing in your app.

7 questions
3
votes
3 answers

How can two users collaboratively edit a JSON file?

I'm creating a collaborative web music platform. At present, i have a simple drum machine working locally, with a JSON file logging all the beats. i.e. after punching in the pattern, the code looks like this when logged to console. A scheduler and…
futureRobin
  • 81
  • 2
  • 10
2
votes
2 answers

Access-Control-Allow-Origin using ShareJS

I have my website on one domain/server: www.mysite.com and I'm running ShareJS on another server: www.my-other-server.com:8000. www.mysite.com/index.html
Jake Wilson
  • 88,616
  • 93
  • 252
  • 370
1
vote
3 answers

Force share.js use the same express session data

I have a simple express app that use session middleware together with passport-local middleware. Then I use share.js with browserchannel to stream data to server via share.listen(stream). All in align with documentation here. My problem is that I…
kaytrance
  • 2,657
  • 4
  • 30
  • 49
1
vote
1 answer

Share.js not working with Express.js

Server Side code, var express = require('express'); //Web Framework var app = express(); var http = require('http').Server(app); //HTTP server module var connect = require('connect'), sharejs = require('share').server; app.use(function(req,…
Kevin Desai
  • 317
  • 3
  • 22
0
votes
1 answer

Change default text in ShareJS

Situation: I have website, written in PHP & mySQL for documents creating/sharing. Now I need to add some collaboration functions to the website so desided to use shareJS (using default ace editor). Almost all works fine but I can't set default text…
Svyat
  • 142
  • 1
  • 2
  • 14
0
votes
1 answer

Sharejs is not loaded at client side

Server var express = require('express'); var app = express(); var connect = require('connect'); var sharejs = require('share').server; var server = connect( connect.static(__dirname + '/public/client/') ); var options = {db: {type:…
Amit
  • 66
  • 9
-2
votes
1 answer

Client server synchronization with offline support

What I'm trying to do is a synchronization of json objects on the client side with help of the server. When the client is not able to connect to the server it should fall back to a locally stored backup of the most recent objects. I have tried…