@feathersjs/socketio-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
# Change Log | ||
## [v1.0.1](https://github.com/feathersjs/socketio-client/tree/v1.0.1) (2017-11-16) | ||
[Full Changelog](https://github.com/feathersjs/socketio-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/socketio-client/pull/4) ([daffl](https://github.com/daffl)) | ||
## [v1.0.0](https://github.com/feathersjs/socketio-client/tree/v1.0.0) (2017-11-01) | ||
@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/feathersjs/socketio-client/compare/v1.0.0-pre.3...v1.0.0) |
{ | ||
"name": "@feathersjs/socketio-client", | ||
"description": "The client for Socket.io through feathers-socketio", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/feathersjs/socketio-client", | ||
@@ -57,8 +57,8 @@ "main": "lib/index.js", | ||
"chai": "^4.1.2", | ||
"feathers-memory": "^1.2.1", | ||
"feathers-memory": "^2.0.0", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"mocha": "^4.0.1", | ||
"semistandard": "^11.0.0", | ||
"semistandard": "^12.0.0", | ||
"socket.io-client": "^2.0.3" | ||
} | ||
} |
@@ -18,10 +18,33 @@ # @feathersjs/socketio-client | ||
## Quick example | ||
```js | ||
const feathers = require('@feathersjs/feathers'); | ||
const socketio = require('@feathersjs/socketio-client'); | ||
const io = require('socket.io-client'); | ||
const socket = io('http://api.feathersjs.com'); | ||
const app = feathers(); | ||
// Set up Socket.io client with the socket | ||
app.configure(socketio(socket)); | ||
// Receive real-time events through Socket.io | ||
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/socketio-client documentation](https://docs.feathersjs.com/api/socketio.html#client) for more details. | ||
Please refer to the [@feathersjs/socketio-client documentation](https://docs.feathersjs.com/api/client/socketio.html) for more details. | ||
## License | ||
Copyright (c) 2017 | ||
Copyright (c) 2018 | ||
Licensed under the [MIT license](LICENSE). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7374
50