Skip to content

Instantly share code, notes, and snippets.

@reza-ryte-club
Created November 6, 2016 04:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save reza-ryte-club/8118201c8be8324b864adc6607c30d52 to your computer and use it in GitHub Desktop.
// /app/sockets/receivers.server.sockets.js
var socketIO;
exports.receivers = (io) => {
socketIO = io;
io.emit(‘generated notification’,’hello’);
}
// handle different type of notification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment