UNPKG

pull-ws

Version:

Simple pull-streams for websocket client connections

4 lines (2 loc) 129 B
var wsurl = require('wsurl'); module.exports = wsurl(typeof window != 'undefined' ? location.origin : 'http://localhost:3000');