Take the 2-minute tour ×

I have a Node Express application and i want to implement a socket.io, but when I want import the socket.io library the javascript console shows to me:


My Jade code is as follows

extends layout

block content
        //var socket = require('./sockets');
        //var socket = io.connect();

form(name='room', action='', method='post')
    input(id='roomName', type='text', name='roomName')
    input(id='button', type='button', value='crear sala' onclick='addRoom()')

The things that I've done already:

->I've installed the socket package via npm correctly. ->I've tried to load the socket.io.js from my browser but the full route isn't created in my app.js


share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

In order to access socket.io.js, you must have a Socket.IO server running.

share|improve this answer
:P hehehe dummie problem. –  Iván Casanova Dec 12 '13 at 14:23
add comment

Your Answer


