alp-websocket
v6.1.2
Published
websocket in alp framework
Maintainers
Readme
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