Socket
Book a DemoInstallSign in
Socket

rainbow-websocket

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rainbow-websocket

rainbow-websocket is an basic implement of websocket base on nodejs, including authentication、promise encapsulation、error handle and so on...

0.0.6
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

rainbow-websocket

npm version

rainbow-websocket is an basic implement of websocket, including authorization、promise encapsulation、error handle ...

base todo-list

No.featureprocess
1异常处理 与 错误码👌
2等待连接的请求处理👌
3推送通知

feature todo-list

No.featureprocess
1Promise的形式调用👌
2心跳机制
3鉴权
4请求拦截器👌

build

# build all
$ npm run build

# esm
$ npm run build:esm

# cjs
$ npm run build:cjs

# umd
$ npm run build:umd

import

// esm
import RainbowWebsocket from 'rainbow-websocket'     

// cjs
const RainbowWebsocket = require('rainbow-websocket')      
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/rainbow-websocket@0.0.4/dist/umd/rainbow-websocket.umd.js">

test

# websocket test server
npm run ws-server

# test page
npm run page-test

FAQs

Package last updated on 25 Nov 2020

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.