Socket
Book a DemoInstallSign in
Socket

mono-io

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mono-io

IO module for Mono

1.1.4
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
3
Weekly downloads
 
Created
Source

Mono

Socket.io module for Mono

npm version Travis Coverage license

Mono-io uses socket.io and socketio-jwt to handle sockets with authorization via JWT.

Installation

npm install --save mono-io

Then, in your configuration file of your Mono application (example: conf/application.js):

module.exports = {
  mono: {
    modules: ['mono-io']
  }
}

Configuration

mono-io will use the io property of your configuration (example: conf/development.js):

module.exports = {
  mono: {
    io: {
      // See options here: https://github.com/socketio/socket.io/blob/master/docs/API.md#new-serverhttpserver-options
    }
  }
}

Usage

In your modules files, you can access io instance:

const { io } = require('mono-io')

io.on('connection', function (socket) {
  console.log(socket)
})

Keywords

socket.io

FAQs

Package last updated on 21 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.