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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:20:04+00:00 2026-05-29T08:20:04+00:00

I create socket connection each time user logs into my application. This means if

  • 0

I create socket connection each time user logs into my application. This means if they open new tabs within same browser window multiple socket connections are established for each browser tabs.
Problem occurs when I close these tabs; inconsistently /disconnect inbound service is called.
This means for some connection /disconnect is not called and for some it is called. I can’t reproduce this consistently (sometimes it called /disconnect sometimes it doesn’t).

I am relying on /disconnect to clean up temporal objects created(stored in datastore) for a particular channel so I am left with all the OpenChannel objects for which /disconnect is never called.

This happens with Chrome and FireFox and never with IE.
Am I using API correctly? Should there ever be one socket connection per browser window rather than tab? (If this is the case then if we store token in the cookie, do we re-establish connection with this token? Wouldn’t this count as two connection per client id?

Thanks.

  • 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-05-29T08:20:05+00:00Added an answer on May 29, 2026 at 8:20 am

    If you open more than two connections against a token created with the same client id, behavior becomes undefined. So if you’re using, say, user.user_id() as the client id and the same user opens 3 tabs, you probably won’t get the /disconnected callback for one of those tabs, even if you create new tokens for each of those tabs.

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

Sidebar

Related Questions

I create a new connection thread each time a connection with a client is
I know that with TCP each connection creates a new socket. Does UDP also
Suppose I create a very simple socket connection, how can one programatically: Find out
If I create a socket using var socket = new UdpClient(0,AddressFamily.InterNetwork); How do I
In socket programming, you create a listening socket and then for each client that
I implemented on Android a small application that sends through a socket connection strings
We are writing an application which needs a dummy user as a socket.io client
I'm trying to use the new room feature in Socket.io v.7 to create dynamic
How to create socket-based ( Binary Socket) WCF server server with WCF, C#? What
I want to create SOCKET chat(server + clients) with private messaging. When client write

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.