gfx.js
gfx.js copied to clipboard
Socket.io error on MacOS
I have successfully loaded the gfx, and it is running into my localhost. However, when I execute gfx.image(image.lena()) nothing appears and my javascript console starts prompting an error. I have attached a image that shows it.
Just complementing, this is the error message I get is:
GET https://localhost:8000/socket.io/1/?t=1400892730784 net::ERR_CONNECTION_REFUSED socket.io.js:1659 Socket.handshakesocket.io.js:1659 Socket.connectsocket.io.js:1699 maybeReconnect
Could you give us more information about your machine. What OS? What version of nodejs do you have installed? Any other info that you deem useful.
Ok @soumith, sorry for waiting so long to answer. Here are some information about my machine.
Mac OS X version 10.9.3 Node v0.10.18
-> % luarocks list
Installed rocks:
cwrap scm-1 (installed) - /usr/local/lib/luarocks/rocks dok scm-1 (installed) - /usr/local/lib/luarocks/rocks gfx.js scm-0 (installed) - /usr/local/lib/luarocks/rocks gnuplot scm-1 (installed) - /usr/local/lib/luarocks/rocks graphicsmagick 1.scm-0 (installed) - /usr/local/lib/luarocks/rocks image 1.1.alpha-0 (installed) - /usr/local/lib/luarocks/rocks linenoise 0.4-1 (installed) - /usr/local/lib/luarocks/rocks lua-cjson 2.1.0-1 (installed) - /usr/local/lib/luarocks/rocks luafilesystem 1.6.2-2 (installed) - /usr/local/lib/luarocks/rocks nn scm-1 (installed) - /usr/local/lib/luarocks/rocks optim 1.0.4-0 (installed) - /usr/local/lib/luarocks/rocks paths scm-1 (installed) - /usr/local/lib/luarocks/rocks penlight 1.3.1-1 (installed) - /usr/local/lib/luarocks/rocks qtlua scm-1 (installed) - /usr/local/lib/luarocks/rocks qttorch scm-1 (installed) - /usr/local/lib/luarocks/rocks sundown scm-1 (installed) - /usr/local/lib/luarocks/rocks sys 1.1-0 (installed) - /usr/local/lib/luarocks/rocks torch scm-1 (installed) - /usr/local/lib/luarocks/rocks trepl scm-1 (installed) - /usr/local/lib/luarocks/rocks xlua 1.0-0 (installed) - /usr/local/lib/luarocks/rocks
I have tested it on Chrome and Firefox, both are having the same issue. Thanks.
i dont know, i have the same setup, and I see no issues. 10.9.3 and v0.10.28
@soumith, whats the version of your socket.io? Mine is:
require('socket.io') { version: '0.9.16', protocol: 1, clientVersion: '0.9.16', listen: [Function], Manager: { [Function: Manager] defaultTransports: [ 'websocket', 'htmlfile', 'xhr-polling', 'jsonp-polling' ] }, Transport: [Function: Transport], Socket: [Function: Socket], Static: [Function: Static], Store: { [Function: Store] Client: [Function] }, MemoryStore: { [Function: Memory] Client: [Function: Client] }, RedisStore: { [Function: Redis] Client: [Function: Client] }, parser: { packets: { disconnect: 0, connect: 1, heartbeat: 2, message: 3, json: 4, event: 5, ack: 6, error: 7, noop: 8 }, reasons: { 'transport not supported': 0, 'client not handshaken': 1, unauthorized: 2 }, advice: { reconnect: 0 }, encodePacket: [Function], encodePayload: [Function], decodePacket: [Function], decodePayload: [Function] } }
When I import socket.io inside node, the following line appears: 'client not handshaken': 1 whereas the error I receive is: Socket.handshakesocket.io.js:1659 are these things related?
probably, i dont know, but I dont see an error when I import socket inside node.