Loading
Guy Ellis
This is a live streamed presentation. You will automatically follow the presenter and see the slide they're currently on.
(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);
});