node-json-socket
node-json-socket copied to clipboard
Hi Sir, i faced an error when writing on socket with multi users. i had checked out below you used 'https://github.com/nodejs/node/blob/master/lib/net.js' it calls 'emit('close', ...) after already closed, so assumed...
I'd like to put this idea up for discussion. It would be a basic parameter for most functions, that defaults to `true` as to not break existing code. Supplying a...
When I'm sending a lot of messages to the server, some messages fail, other messages are ok. ``` { success: false, error: 'Error: Invalid content length supplied (\\",\\"payload\\":{\\"name\\":\\"StatTrak™ USP-S |...
I ran into an issue with this library when parsing multiple messages with international characters. Since the messages are encoded using Buffer.byteLength, the substring in handleData fails (since byteLength will...
When parsing multiple messages, the _handleData falls into this else case: https://github.com/sebastianseilund/node-json-socket/blob/master/lib/json-socket.js#L107 which will take a substring of the message based on the size defined before the message. However, in...
Is the event `err` a valid alias for `error`? I don't think so. See `socket.on('err', this._onError.bind(this));` [here](https://github.com/sebastianseilund/node-json-socket/blob/108a9664ec696f83ea2fd36c0bbad852c38e19cb/lib/json-socket.js#L17)
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...