Skip to content
Snippets Groups Projects
Commit 672192a0 authored by deuce's avatar deuce
Browse files

Add some hackery to allow running from jsexec.

parent 7a96aa9e
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,15 @@ load("event-timer.js");
load("json-sock.js");
load("json-db.js");
// Running from jsexec presumably...
if(js.global.server==undefined) {
load("sockdefs.js");
server={};
server.socket=new Socket(SOCK_STREAM, 'JSONDB');
server.socket.bind(10088,'127.0.0.1');
server.socket.listen();
}
/**** SERVICE MODULES
*
* main service (socket service)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment