@ihadeed/socketio-client
TypeScript icon, indicating that this package has built-in type declarations

600.0.0 • Public • Published

@feathersjs/socketio-client

Build Status Dependency Status Download Status

The client for Socket.io Feathers connections

Installation

npm install @feathersjs/socketio-client --save

Quick example

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 for more details.

License

Copyright (c) 2018

Licensed under the MIT license.

Package Sidebar

Install

npm i @ihadeed/socketio-client

Weekly Downloads

2

Version

600.0.0

License

MIT

Unpacked Size

13 kB

Total Files

6

Last publish

Collaborators

  • ihadeed