Can not run ShareDB counter example

55 views
Skip to first unread message

jiten shah

unread,
Jul 25, 2016, 6:45:43 AM7/25/16
to ShareJS
Hello. I have installed the required packages using npm and was trying the counter example from wiki but I get an "

Agent closed due to error 00060aa9c61e061de1e70fe1ffbf5459 { code: 4000, message: 'Received non-string message' }" on the server side.  Am using websocket-json-stream.


I have attached the following files : 


1. code-ws.js - server file 

2. client.js - client side file which is browserified to bundle.js

3. index.html - is the html file for user.


Can some please help debug me the issue. I am manually do the browserify process. 


Thanks

code-ws.js
bundle.js
client.js
index.html

Avital Oliver

unread,
Jul 25, 2016, 1:50:39 PM7/25/16
to sha...@googlegroups.com
What version of sharedb are you using? It should be 1.0.0-beta.3. The error you see is an old one that isn't present in sha...@1.0.0-beta.3.


--
You received this message because you are subscribed to the Google Groups "ShareJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jiten shah

unread,
Jul 27, 2016, 1:55:47 AM7/27/16
to ShareJS
Yes it was sha...@0.11.37.

I am guessing the new beta release wouldn't not be available through npm ?
To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+unsubscribe@googlegroups.com.

Nate Smith

unread,
Jul 27, 2016, 12:37:52 PM7/27/16
to sha...@googlegroups.com
It is published in npm: https://www.npmjs.com/package/sharedb

To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "ShareJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages