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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:31:48+00:00 2026-06-04T19:31:48+00:00

I am on SDK 1.6.5, Python 2.5 When I start my dev server and

  • 0

I am on SDK 1.6.5, Python 2.5

When I start my dev server and visit my channel test page at 127.0.0.1 everything works fine – token is generated and passed to front end, socket opens, client connected ping is received, my app sends a message to the client, it is received.

If I reload the page:
– no disconnect ping shows up in my logs (It should?)
– new token is generated (OK)
– front end js logs a socket opened with new token (OK)
– no client connected ping received
– …my server-side code is now unaware that this socket is open and doesn’t know how to send messages to the client

Am I misunderstanding the proper flow here?

If I shift+reload the page it’s the same. I have to restart the dev server in order to get everything to work again.

Using djangoappengine:

inbound_services:
- warmup
- channel_presence

handlers:
- url: /_ah/channel/.*
  script: djangoappengine/main/main.py
  • 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-04T19:31:50+00:00Added an answer on June 4, 2026 at 7:31 pm

    This is, more or less, expected, if you’re using the same client id. The basic reason is this: a given client id, app id and version map to a specific XMPP endpoint. The XMPP frontends don’t want to barrage clients with disconnect/connect notifications if clients go offline for a short period of time (say, a couple of seconds). A page refresh is basically like losing and re-negotiating a network connection, so this case is treated like a temporarily dropped connection, and no disconnect/connect is sent.

    If you really need to get the disconnect on page refresh, you could work around this by using a different client id on the call to create_channel on every page request.

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

Sidebar

Related Questions

I'm using the unofficial python sdk for Facebook. This works fine for alot of
The docs for the python dev server say this about running tasks: When your
I am trying to run a VirtualBox machine using the python sdk. I ran
I'm using App Engine, SDK 1.6.3 with Python 2.7. I've created a model like
I'm developing in Google App Engine (python sdk) and I want to use jQuery
I started playing with the new graph api with the python sdk. I'm trying
I'm trying to write a heavily email-based application in the Python SDK of Google
I am using the Python 2.7 runtime with NDB from the 1.6.2 SDK on
I'm trying to use the Yahoo Social Python SDK to get a users contacts
I just want to build simple UI translation built in GAE (using python SDK).

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.