Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heineiuo/seashell
:shell: Distributed message queue based on Splashdb (https://github.com/heineiuo/splashdb).
https://github.com/heineiuo/seashell
http-proxy nat protocol websocket
Last synced: 2 months ago
JSON representation
:shell: Distributed message queue based on Splashdb (https://github.com/heineiuo/splashdb).
- Host: GitHub
- URL: https://github.com/heineiuo/seashell
- Owner: heineiuo
- License: mit
- Created: 2015-10-29T14:00:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T02:56:32.000Z (over 6 years ago)
- Last Synced: 2024-04-25T09:43:22.023Z (9 months ago)
- Topics: http-proxy, nat, protocol, websocket
- Language: JavaScript
- Homepage: https://heineiuo.github.io/seashell
- Size: 505 KB
- Stars: 20
- Watchers: 6
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Seashell
[![Join the chat at https://gitter.im/heineiuo/seashell](https://badges.gitter.im/heineiuo/seashell.svg)](https://gitter.im/heineiuo/seashell?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![npm version](https://img.shields.io/npm/v/seashell.svg?style=flat-square)](https://www.npmjs.com/package/seashell)
[![NPM Status](http://img.shields.io/npm/dm/seashell.svg?style=flat-square)](https://www.npmjs.org/package/seashell)
[![Build Status](http://img.shields.io/travis/heineiuo/seashell/master.svg?style=flat-square)](https://travis-ci.org/heineiuo/seashell)Implement HTTP protocol over WebSocket. Used for NAT, proxy server and others.
---
## Document
#### SeashellGateway
```js
import { SeashellGateway } from 'seashell'const gateway = new SeashellGateway(( req, res ) => {
res.write('Hello World from gateway server')
res.end()
})gateway.listen(3333)
```#### SeashellClient
```js
import { SeashellClient } from 'seashell'const client = new SeashellClient(( req, res ) => {
res.write('Hello World from client')
res.end()
}, {
serverAddress: 'ws://127.0.0.1:3333?appId=APPID&appName=APPNAME&appSecret=APPSECRET'
})
```## Contact
QQ Group: 310433696
## LICENSE
MIT License.