{
  "name": "socketio",
  "config": {
    "arguments": {
      "Player": {
        "type": "players"
      }
    }
  },
  "states": {
    "_state_0": {
      "name": "START",
      "view": {
        "position": {
          "x": -467,
          "y": 803
        }
      },
      "comments": [
        "When a new session is created, the START state starts."
      ],
      "run": [],
      "listen": [
        "timeout_CVr_nnl42e"
      ],
      "path": [
        "start"
      ]
    },
    "_state_1": {
      "name": "QUIT",
      "view": {
        "position": {
          "x": 1177,
          "y": 1523
        }
      },
      "comments": [],
      "run": [
        "_action_1"
      ],
      "listen": [],
      "path": []
    },
    "_state_aCeSZC8Y": {
      "name": "HelloWeb",
      "view": {
        "position": {
          "x": -82,
          "y": 902
        }
      },
      "run": [
        "sendSocketioMessage_Un1YOBGP3p"
      ],
      "listen": [
        "timeout_7ARZNk4TWw"
      ],
      "path": [
        "start"
      ]
    },
    "_state_NWRSdtNt": {
      "name": "WaitForGo",
      "view": {
        "position": {
          "x": 315,
          "y": 1139
        }
      },
      "run": [],
      "listen": [
        "onSocketioMessage_Qc4TFqx0Wc"
      ],
      "path": [
        "start"
      ]
    },
    "_state_cY4LJHFP": {
      "name": "Go",
      "view": {
        "position": {
          "x": 713,
          "y": 1303
        }
      },
      "run": [
        "log_TPM_0MM_zN"
      ],
      "listen": [],
      "path": [
        "start"
      ]
    }
  },
  "actions": {
    "_action_1": {
      "action": "quit",
      "name": "quit_1",
      "plugin": "control",
      "payload": null,
      "mode": "run"
    },
    "sendSocketioMessage_Un1YOBGP3p": {
      "action": "sendSocketioMessage",
      "plugin": "socketio",
      "mode": "run",
      "name": "sendSocketioMessage_1",
      "payload": {
        "namespace": "MyAPP",
        "room": "[[Player]]",
        "topic": "greetings",
        "message": "Nice to meet you!"
      }
    },
    "onSocketioMessage_Qc4TFqx0Wc": {
      "action": "onSocketioMessage",
      "plugin": "socketio",
      "mode": "listen",
      "name": "onSocketioMessage_1",
      "payload": {
        "namespace": "MyAPP",
        "topic": "button",
        "if": [
          {
            "equals": [
              "go"
            ],
            "respond": "_content_GDWBJIot41",
            "next": "Go"
          }
        ],
        "room": "[[Player]]"
      }
    },
    "log_TPM_0MM_zN": {
      "action": "log",
      "plugin": "control",
      "mode": "run",
      "name": "log_1",
      "payload": {
        "level": "info",
        "message": "[[state.WaitForGo.onSocketioMessage_1]]"
      }
    },
    "timeout_CVr_nnl42e": {
      "action": "timeout",
      "plugin": "time",
      "mode": "listen",
      "name": "timeout_1",
      "payload": {
        "timeout": "2",
        "next": "HelloWeb"
      }
    },
    "timeout_7ARZNk4TWw": {
      "action": "timeout",
      "plugin": "time",
      "mode": "listen",
      "name": "timeout_1",
      "payload": {
        "timeout": "2",
        "next": "WaitForGo"
      }
    }
  },
  "contents": {
    "_content_GDWBJIot41": {
      "de": "it's on"
    }
  },
  "created_at": "2024-12-12T12:17:58.008Z",
  "modified_at": "2025-01-13T13:56:41.759Z",
  "created_by": "Anonymosaurus",
  "modified_by": "Anonymosaurus",
  "created_with": "2.7.1",
  "modified_with": "2.7.1",
  "inserted": {
    "states": {},
    "actions": {},
    "contents": {}
  },
  "updated": {
    "states": {
      "_state_1": {
        "view": {
          "position": {
            "x": 1177,
            "y": 1523
          }
        }
      }
    },
    "actions": {},
    "contents": {}
  },
  "removed": {
    "states": [],
    "actions": [],
    "contents": []
  },
  "paths": [
    [
      "start"
    ]
  ],
  "instances": 2,
  "_id": "M6dHdaFoMgCvUtFy"
}