senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. h3poteto (h3poteto@pleroma.io)'s status on Tuesday, 15-Oct-2024 14:52:29 JST h3poteto h3poteto
    なんかこういうプロセス管理がしたいけど,全員が切断したらプロセス終了したいん.それをどうやって管理しようか
    https://elixirforum.com/t/how-to-manage-state-for-each-player-in-phoenix/23654/17
    In conversation Tuesday, 15-Oct-2024 14:52:29 JST from pleroma.io permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: elixirforum.com
      How to manage state for each player in Phoenix
      So looking at what you said you have: Websocket connection between a client and your server A gen_server that holds the game state for that client. Storing the game in the socket is possible but it has many issues - a disconnect/network/socket problem will throw out the state. No bueno unless you’re saving it somewhere external. You can solve it but I think it will add complexity where it doesn’t need to. Any process in erlang can be named and this is something that you can use here if your ...

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.