View simple_websocket_client.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>WebSocket Client</title>
<style>
#output {
border: solid 1px #000;
}
</style>
</head>
View rest-server.py
#!flask/bin/python
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask.ext.httpauth import HTTPBasicAuth
app = Flask(__name__, static_url_path = "")
auth = HTTPBasicAuth()
@auth.get_password
def get_password(username):
if username == 'miguel':
View install_Haxe_Neko_hxcpp_lime _OpenFL.txt
sudo apt-get install libgc-dev libpcre3-dev
sudo apt-get install mesa-utils build-essential git cmake libx11-dev
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev libasound2-dev
#optional but recommended
sudo apt-get install sqlite3 libsqlite3-dev
sudo apt-get install libgtk2.0-dev (installs a lot of dependencies)
sudo apt-get install libmysqlclient-dev
#end optional
View tornado_socket_server.py
import errno
import functools
import socket
from tornado import ioloop, iostream
class Connection(object):
def __init__(self, connection):
self.stream = iostream.IOStream(connection)
self._read()
View tornado_socket_server.py
import errno
import functools
import socket
from tornado import ioloop, iostream
class Connection(object):
def __init__(self, connection):
self.stream = iostream.IOStream(connection)
self._read()