Passing messages through a ShareJS document

83 views
Skip to first unread message

Clemens

unread,
Oct 31, 2014, 6:04:01 AM10/31/14
to sha...@googlegroups.com
Hi all,

I have a need for sending messages from one client to all other clients with a given ShareJS document open.
I'm thinking being able to do something like doc.signal({message: "Hello, world!"}), and then being able to listen for signals on the document on the client side as well.

Is this something that would make sense to have in ShareJS, and something others could see a benefit from?

Cheers,
Clemens



Soroush Hat

unread,
Nov 2, 2014, 6:09:13 PM11/2/14
to sha...@googlegroups.com
If you are using ShareJs 0.6.x, there is a function called "shout" where you can broadcast a message to everyone connected to the same document.

Clemens

unread,
Nov 7, 2014, 2:35:51 AM11/7/14
to sha...@googlegroups.com
Are there any plans for this feature to be part of 0.7?

Cheers
Reply all
Reply to author
Forward
0 new messages