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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:02:29+00:00 2026-05-16T04:02:29+00:00

So I have a website already set up, and I need a comet server

  • 0

So I have a website already set up, and I need a comet server for a chat application. The site is built with twisted.web, and I want to build the comet server with twisted as well since I’m already somewhat familiar with it.

But I’m not sure how to do it. I’ve looked at this post and understand the mechanics in the code snippet — but I tried it and the page takes AGES to load, and when it does, it’s already full of times, and then continues adding them.

My idea of how this would work is, I would have this running as a separate process, and then run my twisted site on another. A page in the twisted site would have an ajax call to the comet server, which would wait for a response. But would that response take ages to return like the page load did?

And how would the comet server best get data from the website server? It wouldn’t just poll the website or I may as well have no comet server — would I just put an infinite loop in the GET handler for the comet server, and have the website call it and interrupt? How would the comet server and website share data? Like, how would the comet server know anything about a user’s session data — who they are, what they’re waiting for, what it can send to them?

Also, I’m not sure about this, but do I have to incorporate threading into the comet server, or is it multithreaded already?

  • 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-16T04:02:29+00:00Added an answer on May 16, 2026 at 4:02 am

    You can use Orbited (which is a comet server based on Twisted) and run it in the same process as your web server. It’s pretty slick. Instead of using its built-in proxy, you just use its guts directly. You’d do something like:

    from orbited.cometsession import Port
    ...
    reactor.listenWith(Port, factory=someFactoryYouWrote, resource=someResourceYouWrote, childName='tcp')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that talks to a remote WCF web service. Both use
I am working on a website which already has user access set up so
My website is set to UTF-8, do i have to set my forms also
I already have an advanced user login/register system on my website ( colemansystems.psm2.co.uk ).
I have a website that plays mp3s in a flash player. If a user
I have a website that I've just uploaded onto the Internet. When I browse
We have a website that uses #include file command to roll info into some
I have a website that is perfectely centered aligned. The CSS code works fine.
I have some website which requires a logon and shows sensitive information. The person
I have a Website that is really slow and feels really bad when using

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.