New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

xpressio

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xpressio

Connect module for SOCKETIO and EXPRESSJS

latest
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

XPRESSIO

Simple Module to start with ExperssJS and SocketIO with session store. Redis server should be running on port 6379

#Basic Config Arguments#

var config = {
                     port: 8966,
                     viewPath: __dirname + '/views', //Template Engine
                     publicPath: __dirname + '/public', //Public Folder (Javascript, CSS)
                     sessionStore: true,
                     socketIO: true
                 }

#HTTP Server#

var XPressIO = require('xpressio');
var xpress = new XPressIO(config).start();
var app = xpress.app;
var io = xpress.io;

#Emit a message to Client#

io.to('#ClientSessionId').emit('message', message)

#Emit a message to Room#

io.to('#RoomName').emit('RoomTopic', message)

Keywords

express

FAQs

Package last updated on 23 Jun 2015

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