Miss any of our Open RFC calls?Watch the recordings here! »

seashell

0.14.4 • Public • Published

Seashell

Join the chat at https://gitter.im/heineiuo/seashell npm version NPM Status Build Status

Implement HTTP protocol over WebSocket. Used for NAT, proxy server and others.


Document

SeashellGateway

import { SeashellGateway } from 'seashell'
 
const gateway = new SeashellGateway(( req, res ) => {
  res.write('Hello World from gateway server')
  res.end()
})
 
gateway.listen(3333)

SeashellClient

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.

Install

npm i seashell

DownloadsWeekly Downloads

73

Version

0.14.4

License

MIT

Unpacked Size

56.9 kB

Total Files

10

Last publish

Collaborators

  • avatar