FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feathersjs-ecosystem/socketio-client: [MOVED] Client services for Socket.io and feathers-socketio · GitHub

This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Repository files navigation

@feathersjs/socketio-client

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

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.

About

[MOVED] Client services for Socket.io and feathers-socketio

Resources

Contributing

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL