Client side Feathers build with REST, Socket.io and Primus clients that work with NodeJS, React Native and in the browser with any client framework
JavaScript HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github Adding .github to .npmignore Oct 22, 2016
browser Upgrade to Feathers v3 and new builds Oct 30, 2017
dist Updating dist Jun 3, 2018
src Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
test Upgrade to Feathers v3 and new builds Oct 30, 2017
.babelrc Upgrade to Feathers v3 and new builds Oct 30, 2017
.gitignore Update to new name and plugin infrastructure Oct 30, 2017
.istanbul.yml Update to new name and plugin infrastructure Oct 30, 2017
.npmignore Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
.travis.yml Update webpack to the latest version πŸš€ (#254) Mar 7, 2018
CHANGELOG.md Updating changelog Jun 3, 2018
Gruntfile.js Reset test name Oct 30, 2017
LICENSE Initial implementation of Feathers clients for jQuery, Superagent and… Jun 1, 2015
authentication.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
bower.json Update version Jun 3, 2018
core.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
index.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
mocha.opts Update dependencies for release (#214) Nov 1, 2017
package-lock.json Update shx to the latest version πŸš€ (#263) Jun 8, 2018
package.json Update shx to the latest version πŸš€ (#263) Jun 8, 2018
primus.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
readme.md delete slack link (#245) Feb 8, 2018
rest.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
socketio.js Link client packages directly to builds and update all dependencies (#… Nov 16, 2017
version.js Make sure Bower and NPM version are in sync (#107) Nov 2, 2016
webpack.config.js Update webpack to the latest version πŸš€ (#254) Mar 7, 2018

readme.md

@feathersjs/client

Greenkeeper badge

Build Status Dependency Status Download Status

Sauce Test Status

A client for Feathers services supporting many different transport libraries.

About

While Feathers and its modules can be used on the client with an NPM compatible module loader like Browserify, Webpack or StealJS, @feathersjs/client consolidates a standard set of client plugins into a single distributable that can be used standalone in the browser or with other module loaders (like RequireJS) that don't support NPM. The following modules are included:

In the browser a client that connects to the local server via websockets can be initialized like this:

<script type="text/javascript" src="//unpkg.com/socket.io-client@1.7.3/dist/socket.io.js"></script>
<script type="text/javascript" src="//unpkg.com/@feathersjs/client@^3.0.0/dist/feathers.js"></script>
<script type="text/javascript">
  var socket = io();
  var client = feathers()
    .configure(feathers.socketio(socket));
  var todoService = client.service('todos');
  
  todoService.on('created', function(todo) {
    console.log('Someone created a todo', todo);
  });
  
  todoService.create({
    description: 'Todo from client'
  });
</script>

For the full documentation see the Feathers documentation.

License

Copyright (c) 2017 Feathers contributors

Licensed under the MIT license.