UNPKG

pull-ws

Version:

Simple pull-streams for websocket client connections

11 lines (8 loc) 225 B
var pull = require('pull-stream'); // we just need the source, so cherrypick var ws = require('../source'); pull( // connect to the test/server.js endpoint ws(new WebSocket('ws://localhost:3000/read')), pull.log() );