josephg / josephg/ShareJS

ShareJS 0.7 - Can't open a client connection *from nodejs*

Open
#301 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
454
PR merge metrics
No merged PRs in 30d

Description

Opening a client connection from a browser works perfectly.
script "bcsocket.js"
script share.js"
...
var s = new BCSocket(url, { reconnect: true });
var sjs = new window.sharejs.Connection(s);

Opening a client connection _from nodejs_, basically using the same commands fail:
import ShareJS = require("share");
import BrowserChannel = require("browserchannel");
...
var s = new BrowserChannel.BCSocket(url, { reconnect: true });
var sjs = ShareJS.client.Connection(s); //--> raises an exception Object # has no method 'reset'

I used these modules:
ShareJS 0.7
BrowserChannel 1.1.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.