Important: The code for this module has been moved into the main Feathers repository at feathersjs/feathers (package direct link). Please open issues and pull requests there. No changes in your existing Feathers applications are necessary.
The client for Socket.io Feathers connections
npm install @feathersjs/socketio-client --save
constfeathers=require('@feathersjs/feathers');constsocketio=require('@feathersjs/socketio-client');constio=require('socket.io-client');constsocket=io('http://api.feathersjs.com');constapp=feathers();// Set up Socket.io client with the socketapp.configure(socketio(socket));// Receive real-time events through Socket.ioapp.service('messages').on('created',message=>console.log('New message created',message));// Call the `messages` serviceapp.service('messages').create({text: 'A message from a REST client'});Please refer to the @feathersjs/socketio-client documentation for more details.
Copyright (c) 2018
Licensed under the MIT license.
