ws-browser

WS For The Browser

Usage no npm install needed!

<script type="module">
  import wsBrowser from 'https://cdn.skypack.dev/ws-browser';
</script>

README

WS-Browser

WS For The Browser

Installation

$ npm i ws-browser

Usage


const ws = new zWebSocket('ws://www.host.com/path')

ws.on('open', () => {

  console.log('WebSocket Connected')

})
 
ws.on('message', (message) => {

  console.log(message)

})