How can I make this work with socket.io

Update: This seems to work

```
var port = {
    postMessage: function (message) {
        socket.emit("message", message);
    },
    onmessage: null // gets filled in by Q-Comm
};
socket.on("message", function (data) {
    port.onmessage({data: data})
});
var remote = Connection(port, local);
```

Hi,

I'm looking to leverage this but with socket.io. I didn't find any good example on how I can do that. Would it be possible to provide a quick example or outline an approach?

Thanks much in advance.