wss-origin
v0.2.0
Published
node ws server easy origin verify
Downloads
5
Readme
wss-origin
Install
$ yarn add wss-origin
Usage
const WssOrigin = require('wss-origin')
const wss = new WssOrigin({
port: 9999
}, ['http://test.com'])
// client from 'http://test.com' can connect, others will get 403
// node only with option { origin: 'http://test.com' } can pass
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
wss-origin © zcong1993, Released under the MIT License. Authored and maintained by zcong1993 with help from contributors (list).
github.com/zcong1993 · GitHub @zcong1993