# simple-websocket [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] [travis-image]: https://img.shields.io/travis/feross/simple-websocket/master.svg [travis-url]: https://travis-ci.org/feross/simple-websocket [npm-image]: https://img.shields.io/npm/v/simple-websocket.svg [npm-url]: https://npmjs.org/package/simple-websocket [downloads-image]: https://img.shields.io/npm/dm/simple-websocket.svg [downloads-url]: https://npmjs.org/package/simple-websocket [standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg [standard-url]: https://standardjs.com #### Simple, EventEmitter API for WebSockets [![Sauce Test Status](https://saucelabs.com/browser-matrix/simple-websocket.svg)](https://saucelabs.com/u/simple-websocket) ## features - **super simple** API for working with WebSockets in the browser - supports **text and binary data** - node.js [duplex stream](http://nodejs.org/api/stream.html) interface - client & server implementations This package is used by [WebTorrent](https://webtorrent.io). ## install ``` npm install simple-websocket ``` This package works in the browser with [browserify](https://browserify.org). If you do not use a bundler, you can use the `simplewebsocket.min.js` standalone script directly in a `