node-json-socket icon indicating copy to clipboard operation
node-json-socket copied to clipboard

missing methods

Open nelsonec87 opened this issue 7 years ago • 1 comments

Hi, as this is a decorator, I don't think the code should "hide" methods from the original socket. In my case, I had to add "write" to the list of 'delegates' (line 179) in order to use the method.

great project!

nelsonec87 avatar Jun 14 '17 14:06 nelsonec87

Writing directly into he socket breaks the protocol of adding the header to each message. So the receiver cannot receive those messages, can it?

ribizli avatar Sep 15 '17 11:09 ribizli