(in Chrome browser if you can)
Let's try it out with linksilk.com
(with Chrome if possible)
Open Chrome Dev Tools
Refresh
Find WS
Also on Console
var upsertBucket = function (pageId, bucket) {
var data = {
pageId: pageId.toString(),
type: 'upsertBucket',
data: bucket
};
socket.emit('silkData', data);
};
1st update server with a POST
then WS:
socket.on('silkData', function (data) {
socket.broadcast.to(data.pageId).emit('silkData', data);
});