Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delimit messages over socket connection? #40

Open
ajboni opened this issue Jul 6, 2020 · 0 comments
Open

How to delimit messages over socket connection? #40

ajboni opened this issue Jul 6, 2020 · 0 comments

Comments

@ajboni
Copy link

ajboni commented Jul 6, 2020

Hi, I'm playing with controlling mod-host over nodejs

The problem I'm having is that if a I send more than one messages in a short period of time, they are being sent in the same TCP packet, this is expected behaviour afaik.

Mod-host receives as one message and throws 'many arguments' error.
The question is if I can send a flag (line '\n') so mod-host splits the commands and executes them sequentially

I've tried setting '\n' at the end of each command, but its being ignored. What seems to partially work is adding a '\0' flag but then it will only process the first message.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant