Error happens when using Sockjs

Hi @Shin_Jecheol and welcome,

I think with the latest version of socket.io you need to boot the connection like this:

var socket = io.connect('server_url');

Check this forum post for a working version: