mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-26 00:06:17 +00:00
16 lines
340 B
JavaScript
16 lines
340 B
JavaScript
'use strict';
|
|
|
|
define([
|
|
'react', 'socketio', 'dataio'
|
|
], function(
|
|
React, socketio, dataio
|
|
) {
|
|
// console.log(React, socketio, dataio);
|
|
var connect = dataio(socketio.connect());
|
|
|
|
var projects = connect.resource('projects');
|
|
projects.sync('read', function(err, projects) {
|
|
console.log('>>> err, projects = ', err, projects)
|
|
});
|
|
});
|