JohnMcLear / draw

A real time collaborative drawing tool using nodejs, socket.io & paper.js
Apache License 2.0
482 stars 158 forks source link

Socket.io initialising issue #247

Closed un-versed closed 8 years ago

un-versed commented 8 years ago

I've configs all up, and started the bin/run.sh. But, when i try to load the page, my Chrome's console drop this error:

VM171:119 Uncaught TypeError: Cannot read property '1' of null

In this lines: // Initialise Socket.io var base_path = /(\/.+\/)d\/.*/.exec(window.location.pathname)[1]; var socket = io.connect({ path: _$_(base_path, "+", "socket.io")});

Someone know what i need to do? I'm newbie with Node.js things...