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

  • SEARCH
  • Home
  • 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 8592889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:51:36+00:00 2026-06-11T23:51:36+00:00

I want to make an app that relies in socket.io to offer real-time collaborative

  • 0

I want to make an app that relies in socket.io to offer real-time collaborative editing and I wonder which of these cases is better/faster:

<textarea id="some-id" onkeypress="broadcast()" ... >Type your text here</textarea>
  • every time a change is made the client broadcasts the whole input with the volatile flag, so if a message is lost, the next one will replace it.
  • every time a change is made the client broadcasts only that change and other clients apply it.

Also, are there any other APIs/frameworks/plugins that I can use rather than socket-io for collaborative document editing?
Thank you.

  • 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-11T23:51:37+00:00Added an answer on June 11, 2026 at 11:51 pm

    Let me answer your question a year after you posted this, because you’re probably very impatient by now!

    I think you would be better of with sending the change only.

    • If two persons are typing at the same time, you will lose data if you’re overwriting everything, even with very low latency. That is unacceptable.
    • Without the volatile flag, the latency will be already very low, like a fraction of a second. (Also depends on the user’s connection, of course). Remote persons will probably not notice these tiny delays.
    • Documents may get large, so if someone is happily typing away in a big document, you’re sending a lot of data around, which is not efficient.

    Socket.IO is pretty good for this job: It has great cross-browser compatibility and the overhead is acceptable. If you’re only targeting browsers that support HTML5’s Websocket, you could use a Websocket package for node.js.

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

Sidebar

Related Questions

I want to make an app that knows the last time the iPhone moved
I want to make an app that can display images. But the real problem
I want to make an app that has a view that moves randomly or
I want to make an app that can receive broadcast when other apps on
i want to make a php app that let people submit photos/videos/sounds Now, everything
I want to make a little tk app that continuous ping an ip and
I want to make an Android Game App that loads a game slot that
Hi I want to make a small test window app that can force IE
I want to data mine dribbble.com so I can make an app that registers
I want to create App that Make My Device with multi-Users username and password

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.