Skip to content

Instantly share code, notes, and snippets.

@kruyvanna
Last active June 20, 2019 08:12
Show Gist options
  • Save kruyvanna/6076741 to your computer and use it in GitHub Desktop.
Save kruyvanna/6076741 to your computer and use it in GitHub Desktop.
window.App.httpServer = {};
var PORT = 3000;
var ROOT_DIRECTORY = "client/"
var httpServer = new monaca.HttpServer(ROOT_DIRECTORY, PORT);
App.httpServer.start = function(){
httpServer.start(function(response){
App.trigger('httpServer:started', response);
}, echo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment