This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing | |
import multiprocessing.queues | |
from flask import Flask | |
from flask import request | |
class Backend(object): | |
def __init__(self, command_queue, host='0.0.0.0', port=8000, debug=True): | |
self.command_queue = command_queue | |
self.flask_app = Flask('Backend') | |
self.flask_app.add_url_rule('/', "handleRequest", self.handleRequest, methods=['GET']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>GameJS Application</title> | |
<!-- Styling --> | |
<style type=text/css> | |
body{ | |
background:#fff; | |
color:#222; | |
margin:1em 0 2em 6em; |