socketstream/socketstream — Issue #156: Redundant SocketStream and ss variables
Author: nponeccop
Created: 2012-02-25 15:49:36+00:00
State: open

At the moment we use the following code on client:

```Javascript
SocketStream.event.on('ready', function ()
{
ss.rpc('quux.baz', baz)
})
```

So both `SocketStream` and `ss` variables are accessible and usable. Is it possible to have a unified SocketStream object for everything and stop exposing a separate ss variable?

Is it possible to remove SocketStream too and replace it with a client-side require, so any variable name can be used and global namespace is only polluted with `require`:

```Javascript
var fooStream = require('socketstream')

fooStream.event.on('ready', function ()
{
fooStream.rpc('quux.baz', baz)
})
```

What do you think?