You can use "agent" option of http (and websocket) client. You need to 
create agent and override createSocket function to return your own socket.
I'm having the same problem - I need to connect chrome devtools console 
repl [1] using stream created by adb client library [2]. I created simple
 wrapper library which makes an agent for you [3] (not heavily tested yet, 
use at your own risk)

1) https://github.com/sidorares/crconsole
2) https://github.com/sidorares/node-adbhost
3) https://github.com/sidorares/node-streamagent

On Friday, 18 October 2013 09:23:38 UTC+11, Geoff Van Brunt wrote:
>
> I saw that as well. However I'm sure how to do "translate" and existing 
> socket into Unix Domain Socket? 
>
> I can do it all using lower level api's, but then I would basically have 
> to recreate http which is a pain. I could also use it a s abase for my own 
> http, but that is still time consuming. I was hoping there was a simple way,
>
> On Thursday, October 17, 2013 5:29:38 PM UTC-4, greelgorke wrote:
>>
>> http://nodejs.org/api/http.html#http_http_request_options_callback :
>>
>>
>>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to