-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localhost disconnects automatically when a socket tries to connect #8
Comments
Solved this by placing the socket.io.js locally in a socket.io folder Now after everything The app closes while opening the web page localhost:3000 "C:\Program Files (x86)\JetBrains11\WebStorm 2016.1\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" server.js Process finished with exit code -1073740791 (0xC0000409) It happens exactly when the page loads up // camera properties // face detection properties // initialize camera module.exports = function (socket) {
}, camInterval); `client/app.js: // MODIFY THIS TO THE APPROPRIATE URL IF IT IS NOT BEING RUN LOCALLY var canvas = document.getElementById('canvas-video'); // show loading notice socket.on('frame', function (data) { img.onload = function () { |
hi ~ i have the same problem with this issue. |
To anyone who may be having this issue, this is a possible fix, it worked for me. Note if you do this you will have to re-install the face detection package all over again. peterbraden/node-opencv#483 |
got this issue too. |
XMLHttpRequest cannot load http://localhost/socket.io/?EIO=3&transport=polling&t=LLEzHd_. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 404.
This error pops out in the dev console.
If i change the port to 3000 Then in the console , a Get message is logged
HTTP server listening on port 3000
GET /favicon.ico 304 7.527 ms - -
The text was updated successfully, but these errors were encountered: