Commit 7b7f5162 authored by Michael Murtaugh's avatar Michael Murtaugh

added settings to collage shell for server address

parent 8c5f8746
var io = require(''),
fs = require('fs'),
spawn = require('child_process').spawn,
player = undefined,
socket = io.connect('http://localhost:10987');
player = undefined;
var settings = JSON.parse(fs.readFileSync("settings.json", "utf8"));
var socket = io.connect("http://"+settings.ipaddress+":"+settings.port);
socket.on("connect", function (data) {
console.log("connected to socket server");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment