Skip to content

Instantly share code, notes, and snippets.

@cchudant
Created September 30, 2018 09:35
Show Gist options
  • Save cchudant/741621047697d0f33478280150e22148 to your computer and use it in GitHub Desktop.
Save cchudant/741621047697d0f33478280150e22148 to your computer and use it in GitHub Desktop.
Serve a wasm application
import SimpleHTTPServer
import SocketServer
PORT = 8000
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
pass
Handler.extensions_map['.wasm'] = 'application/wasm'
httpd = SocketServer.TCPServer(("", PORT), Handler)
print "Serving at port", PORT
httpd.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment