socketstream/socketstream — Issue #132: Publish Transport and Redis Config
Author: miningold
Created: 2012-02-07 04:34:30+00:00
State: open

When telling SocketStream to use Redis with this command:

```javascript
ss.publish.transport.use('redis', {redis: {host: 127.0.0.1', port: 6379}});
```

the `ss.publish.transport.use` function requires and returns `'./transports/redis'` with this command:

```javascript
return require("./transports/" + nameOrModule);
```

However, the transports `init()` method is not being called until `ss.publish.transport.load` is called. This means that the config information is not reaching `/transports/redis.js`

What should happen instead is the redis transport should be initialized when the `use` method is called not the `load` method, like so:

```javascript
return require("./transports/" + nameOrModule).init(config);
```

And the load method should:

```javascript
return transport;
```

not:

```javascript
return transport.init();
```

Yet again, I may be wrong because I am just now learning this stuff.