Skip to content

Commit

Permalink
Use the local ShareDB package in the textarea example
Browse files Browse the repository at this point in the history
  • Loading branch information
gkubisa committed Apr 8, 2019
1 parent e903185 commit 6310a55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/textarea/client.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var sharedb = require('@teamwork/sharedb/lib/client');
var sharedb = require('../../lib/client');
var StringBinding = require('sharedb-string-binding');

// Open WebSocket connection to ShareDB server
Expand Down Expand Up @@ -30,7 +30,7 @@ socket.onerror = function() {
var doc = connection.get('examples', 'textarea');
doc.subscribe(function(err) {
if (err) throw err;

var binding = new StringBinding(element, doc, ['content']);
binding.setup();
});
1 change: 0 additions & 1 deletion examples/textarea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"license": "MIT",
"dependencies": {
"express": "^4.14.0",
"@teamwork/sharedb": "^1.1.4",
"reconnecting-websocket": "^3.0.3",
"sharedb-string-binding": "^1.0.0",
"@teamwork/websocket-json-stream": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/textarea/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var http = require('http');
var express = require('express');
var ShareDB = require('@teamwork/sharedb');
var ShareDB = require('../..');
var WebSocket = require('ws');
var WebSocketJSONStream = require('@teamwork/websocket-json-stream');

Expand Down

0 comments on commit 6310a55

Please sign in to comment.