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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:06:59+00:00 2026-06-07T23:06:59+00:00

I am trying to implement sockets using the client library of socket.io and the

  • 0

I am trying to implement sockets using the client library of socket.io and the server implementation for Python, gevent-socketio. I got the server to run and the sockets to work. However, I am trying to implement some simple in-browser game (that I didn’t write!) and the game happens completely within one instance of the game class. It works something like this:

game = Game([player1,player2])
game.turn(player1, action_one)
game.turn(player2, action_two)
...
print game.winner()

Since I want to use sockets for the turns, I need some way to share the game object on the server side between the different sockets (players). How could I do this? I really would not like to store each state of the game on the disk or in some database. Is there any other option?

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

    It seems like Pyro is exactly what I need.

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

Sidebar

Related Questions

I'm trying to implement a socket server that will run in most shared PHP
I'm trying to implement Window socket using Python. Mostly, everything has been so far
I'm trying to implement a client-sever model using OSGi. the server application is the
I am trying to implement a simple websoket server on python, using RFC 6455
I'm currently trying to implement a socket server that enables the clients to send
I'm trying to implement TCP hole punching with windows socket using mingw toolchain. I
I am trying to implement a bidirectional client-server program, where clients and servers can
I have been trying to implement a small SERVER - CLIENT app but ran
I'm trying to make a simple http client server using java. It will show
I am trying to implement a simple chat program in linux using bsd sockets.

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.