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 8845363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:43:19+00:00 2026-06-14T11:43:19+00:00

It says websocket Communication takes place over single TCP socket using the ws (unsecure)

  • 0

It says websocket

” Communication takes place over single TCP socket using the ws
(unsecure) or wss (secure) protocol…”

Does it mean client-server only need one handshake?
But I saw handshakes in NodeJs console every second.
What are they?

  • 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-14T11:43:20+00:00Added an answer on June 14, 2026 at 11:43 am

    A handshake needs to be done whenever a websocket-using javascript is executed by a user. Websockets can not be reused between page accesses. They are closed automatically when the user closes or leaves the page. When the user opens a new tab, a second socket will be created which will need a new handshake.

    When your NodeJs application is a web application where the client lives on a HTML page, the connection will be re-established whenever the user requests the page. So when the user navigates through your website and there is a websocket-using javascript embedded on each HTML page, then you will see a new handshake being performed after every click.

    When you see new handshakes all the time although there is only one user who stays on the same page all the time, then there might indeed be something wrong with your application. Does it maybe create new sockets all the time although it could reuse an existing one? (every new WebSocket means one new websocket connection means one new handshake being performed).

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

Sidebar

Related Questions

When I'm trying to connect to my websocket, it says that flash socket policy
says if i develop a Ruby on Rails application using Rails 2.3.2, will that
Lets says I'm replacing an over complicated method with a much simpler implementation that
as the question says, i'm trying to connect to the socket.io server from an
Title says all - what library(ies) or code or whatever does a digital audio
It seems that everybody says that it is possible to send over 126 chars
Question says it all. I'm just having trouble figuring this out. What i'm trying
Wikipedia says: MVC provides front and back ends for the database, the user, and
Firefox says they support 128px cursors, but that you must keep within 32x32px for
This says $total and $sub is undefined for $total += $sub. $sub was declared

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.