stealjs / steal-socket.io

A small wrapper that lets you use socket.io on the client and server
MIT License
2 stars 3 forks source link

Store & expose the socket URL #9

Closed marshallswain closed 7 years ago

marshallswain commented 8 years ago

This makes the URL available externally to the socket, the way it is with actual socket.io-client.

var socket = io(‘http://localhost:3030’);

assert(socket.io.uri === ‘http://localhost:3030’) // <— true
matthewp commented 7 years ago

lgtm 👍