빡친이상민.jpg
").appendTo("#gnb"); } jQuery('.remove').click(function() { jQuery.noticeRemove(jQuery('.notice-item-wrapper'), 400); }); var ws = new WebSocket("ws://notify.ilbe.com/"); ws.onopen = function() { ws.send('A|GUEST|e23e813bbba072155e80b89d579f1478'); ws.send('J|76653155|8e1044730a288b385658eea50bf7f5db'); ws.send('J|ilbe|b7def51d6467e4daf02bf99808df415e'); ws.onmessage = function(message) { if(message.data.charAt(0) == 'O') { ws.send('O|O'); } return; if(message.data.charAt(0) == 'A') { notify_status("온라인"); } else if(message.data.charAt(0) == 'S') { jQuery("#_ssi").append(message.data.substring(2)); } else if(message.data.charAt(0) == 'D') { notice( message.data.substring(2), 1 ); } }; ws.onclose = function() { return; notify_status("오프라인"); } return; notify_status("접속됨"); } // var inform = io.connect('http://notify.ilbe.com:8080/'); /* inform.on('connect', function() { notify_status("접속됨"); ws.send('A|GUEST|e23e813bbba072155e80b89d579f1478'); ws.send('J|76653155|8e1044730a288b385658eea50bf7f5db'); ws.send('J|ilbe|b7def51d6467e4daf02bf99808df415e'); }); inform.on('authed', function (name) { // notify_status(name.substring(5)+" 온라인"); notify_status("온라인"); }); inform.on('script', function (msg) { jQuery("#_ssi").append(msg); }); inform.on('data', function (msg) { notice(msg,1); }); inform.on('join', function (msg) { }); inform.on('leave', function (msg) { }); inform.on('disconnect', function () { notify_status("오프라인"); }); */ //]]!>