socketio / socket.io-p2p

MIT License
1.03k stars 179 forks source link

Consistency #6

Closed bevacqua closed 9 years ago

bevacqua commented 9 years ago

Why not provide a new-less implementation just like socket.io does?

var socket = io();
var p2p = new P2P(socket);
var socket = io();
var p2p = P2P(socket);
tomcartwrightuk commented 9 years ago

This is a good idea. I will investigate how this can be done. Will keep this issue open to remind to look into it.

tomcartwrightuk commented 9 years ago

I will revisit this, but there would be a fair bit of wrangling required to get it to work and it's not a massive priority. Version 2.0 might be a good time to do so.