Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8739607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:58:15+00:00 2026-06-13T10:58:15+00:00

Hey I am still new to javascript. I am working on a multiplayer server

  • 0

Hey I am still new to javascript.

I am working on a multiplayer server using NodeJS, socket.io and javascript.

I am playing around with a serverscript I found on a website. It uses .split to send several strings of information to the Client.
The client then uses an array to determine what to use the .split data for according to the order it received it in.

int(Socket.LastDataElement(2))
int(Socket.LastDataElement(3))

My first Question would be if there is a chance that these packages could come in the wrong order, or not be cleared properly?

Possible Result:

Health = Watermelon

Speed = Cheesecake

OR

The wrong player shoots the Bullet!


Second Question:

From my current point of view, sending .split strings sounds very smart compared to the alternative of sending Health, X, Y, Z, Attack, etc… as single packages.
But does it actually save bandwidth and time? Or does it only look this way because I am a noob.

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:58:16+00:00Added an answer on June 13, 2026 at 10:58 am

    First, no. They will never appear out of order (to your application). The writer hands the data to a TCP (Transmission Control Protocol) implementation, which does all the work of transporting it to the right process on the right remote machine. The reader will wait patiently wait for a distinct, in order, chunk of data then handle that. Depending on your application layer protocol (WebSockets, Sockets.io), entire datagrams may be sent, or just character data a little at a time.

    You’re micro-managing. That’s a question for TCP to handle. No matter the size of your message, your TCP implementation (probably at the OS level) will chunk it as it sees fit for transport. Unless you’re sending a large amount of data (kilobytes to megabytes worth) and you need to be able to process it a little bit at a time, you don’t need to worry about the chunking of data and packet size.

    In general, make sure that your transmissions are atomic (the minimum amount of information needed for your application to do what you want on the other side), and you won’t have any problem with out of order packets, and you’ll be just fine as far as bandwidth is concerned.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey i'm new to c++ and still working out its perticularities. I'm having the
Hey folks I am trying to implement a search functionality in a website using
Hey guys still busy with the registration form article I found, I followed the
Hey all. I'm still pretty new to iPhone development, and I'm having a bit
Hey still new to JS/CSS/HTML well basicly webdevelopment. I have a page, for which
Hey all, I'm still relatively new to Java, and looking for a sanity check.
Hey frenz I am new to Umbraco cms. And I am building site using
Hey i have been looking around and i cant find a way to get
I'm new to javascript and I am attempting to create an element with certain
I'm still fairly new to Python, and my OO experience comes from Java. So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.