Closed justinbmeyer closed 8 years ago
const feathersSessionBehavior = require('can-connect-feathers/session');
const io = require('socket.io'); //-> want to use steal-socket.io in donejs ssr app
const feathers = require('feathers/client');
const socketio = require('feathers-socket.io/client');
const hooks = require('feathers-hooks');
const auth = require('feathers-authentication/client');
const socket = io('http://localhost:3030', {
transports: ['websocket']
});
var feathersApp = feathers()
.configure(socketio(socket))
.configure(hooks())
.configure(auth());
var connection = can.connect([behaviors..., realTimeBehavior, connectFeathersBehavior], {
feathersApp: feathersApp
});
{FeathersApp}
Add getData
Use
No need to call
connection.createInstance
, etc.Options
feathersService
{FeathersService}
data interface
getListData
getData
createData
updateData
destroyData