alp-websocket

websocket in alp framework

Stats

StarsIssuesVersionUpdatedCreatedSize
alp-websocket
0116.1.29 months ago6 years agoMinified + gzip package size for alp-websocket in KB

Readme

alp-websocket

websocket in alp framework

Server-side

import Koa from 'koa';
import config from 'alp-node-config';
import websocket from 'alp-websocket';

const app = new Koa();
config(`${__dirname}/config`, { packageConfig })(app);
const io = websocket(app);

Browser-side

import Ibex from 'ibex';
import config from 'alp-browser-config';
import websocket from 'alp-websocket';

const app = new Ibex();
config('/config')(app);
const socket = websocket(app);

Config

common:
  websocket:
    secure: true
    port: 3001

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.