Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Change variable naming from "app" to "feathersClient" (#103)
Browse files Browse the repository at this point in the history
* Change variable naming from "app" to "feathersClient"

This should help people like me who could get confused by having "feathersClient" called "app" but not being able to use it as "app" in feathers (not client) or express.

Regarding: #102

* client instead of feathersClient
  • Loading branch information
nicoknoll authored and daffl committed Oct 25, 2016
1 parent a710d2b commit fa65e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ In the browser a client that connects to the local server via websockets can be
<script type="text/javascript" src="//cdn.rawgit.com/feathersjs/feathers-client/v1.1.0/dist/feathers.js"></script>
<script type="text/javascript">
var socket = io();
var app = feathers()
var client = feathers()
.configure(feathers.hooks())
.configure(feathers.socketio(socket));
var todoService = app.service('todos');
var todoService = client.service('todos');
todoService.on('created', function(todo) {
console.log('Someone created a todo', todo);
Expand Down

0 comments on commit fa65e5a

Please sign in to comment.