@feathersjs/primus-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
# Change Log | ||
## [v1.0.1](https://github.com/feathersjs/primus-client/tree/v1.0.1) (2017-11-16) | ||
[Full Changelog](https://github.com/feathersjs/primus-client/compare/v1.0.0...v1.0.1) | ||
**Merged pull requests:** | ||
- Add default export for better ES module \(TypeScript\) compatibility [\#4](https://github.com/feathersjs/primus-client/pull/4) ([daffl](https://github.com/daffl)) | ||
## [v1.0.0](https://github.com/feathersjs/primus-client/tree/v1.0.0) (2017-11-01) | ||
@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/feathersjs/primus-client/compare/v1.0.0-pre.2...v1.0.0) |
{ | ||
"name": "@feathersjs/primus-client", | ||
"description": "Client services for Primus and feathers-primus", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/feathersjs/primus-client", | ||
@@ -57,9 +57,9 @@ "main": "lib/index.js", | ||
"chai": "^4.1.2", | ||
"feathers-memory": "^1.3.0", | ||
"feathers-memory": "^2.0.0", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"mocha": "^4.0.1", | ||
"semistandard": "^11.0.0", | ||
"uws": "^8.14.1", | ||
"semistandard": "^12.0.0", | ||
"uws": "^9.14.0", | ||
"ws": "^3.3.1" | ||
} | ||
} |
@@ -18,10 +18,31 @@ # @feathersjs/primus-client | ||
Quick usage: | ||
```js | ||
const feathers = require('@feathersjs/feathers'); | ||
const primus = require('@feathersjs/primus-client'); | ||
const socket = new Primus('http://api.my-feathers-server.com'); | ||
const app = feathers(); | ||
app.configure(primus(socket)); | ||
// Receive real-time events through Primus | ||
app.service('messages') | ||
.on('created', message => console.log('New message created', message)); | ||
// Call the `messages` service | ||
app.service('messages').create({ | ||
text: 'A message from a REST client' | ||
}); | ||
``` | ||
## Documentation | ||
Please refer to the [@feathersjs/primus-client documentation](https://docs.feathersjs.com/api/primus.html#client) for more details. | ||
Please refer to the [@feathersjs/primus-client documentation](https://docs.feathersjs.com/api/client/primus.html) for more details. | ||
## License | ||
Copyright (c) 2017 | ||
Copyright (c) 2018 | ||
Licensed under the [MIT license](LICENSE). |
6892
48