alp-websocket
TypeScript icon, indicating that this package has built-in type declarations

6.1.2 • Public • Published

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

/alp-websocket/

    Package Sidebar

    Install

    npm i alp-websocket

    Weekly Downloads

    42

    Version

    6.1.2

    License

    ISC

    Unpacked Size

    164 kB

    Total Files

    37

    Last publish

    Collaborators

    • churpeau