0.1.6 • Published 5 years ago

bws v0.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

bws

Wrap websockets to make them look like node.js tcp sockets.

Usage

const net = require('bws');

const server = net.createServer();
server.on('connection', (socket) => {
  socket.setEncoding('utf8');
  socket.on('data', (data) => {
    console.log(data);
  });
});
server.listen(8080);

const socket = net.connect(8080, '127.0.0.1');
socket.on('connect', () => {
  socket.write('hello', 'utf8');
});

Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work. </legalese>

License

  • Copyright (c) 2017, Christopher Jeffrey (MIT License).

See LICENSE for more info.

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

7 years ago