Public chat window is corrected. A number of console logs are added to make it easy to bug #14

Merged
merged 1 commit into from Dec 29, 2011

Conversation

Projects
None yet
2 participants
Collaborator

angarag commented Dec 29, 2011

Private chat windows still have some bugs (but there are some modifications)

angarag added a commit that referenced this pull request Dec 29, 2011

Merge pull request #14 from mars0411/master
Public chat window is corrected. A number of console logs are added to make it easy to bug

@angarag angarag merged commit 634b181 into khaschuluu:master Dec 29, 2011

Миний бодлоор view-ээс ямар socket-оор ирж байгаа нь тодорхой юм чинь FROM, controller-оос ямар socket-оор явж байгаа нь тодорхой юм чинь TO гэдэг хувьсагч байх шаардлагагүй гэж бодсон юм л даа?

Collaborator

angarag replied Dec 31, 2011

harin socket deer tuhain session deh hereglegchiin neriig avah gehleer hamgiin suuld nevtersen hereglegchiinh orj ireed bh shig bsan. Gehdee bi suuld dahij shalgaj uzeegui. Tegeed from gedgiig zarlachihsan.

session.user.name гэдэг хувьсагч байж байхад hidden input ямар үүрэгтэй вэ?

Collaborator

angarag replied Dec 31, 2011

session.user.name buruu orj ireed bsan bha. Bas zarimdaa bi name'd ni handaj chadahgui bsan. Gehdee suuld shalgal uzeegui. Herev bolj bval ene hidden input'iin hereg bhgui l de :)

Collaborator

angarag replied Dec 31, 2011

th.Bi session'd room'ees handaj chadahgui bgama.

socket.on('online_users', function (online_users) {
document.getElementById('online_users').innerHTML = '';
console.log('Session user name: %s',session.user.name);
....

neg iimerhuu baidlaar handah gehleer bolohgui bsan. Yaj session'd handah ve?

Owner

khaschuluu commented on app.js in 0462db4 Dec 30, 2011

connections нь нэр болон нэрд харгалзах давхардсан socket-уудыг авч байгаа. User_sockets хувьсагч ямар хэрэгтэй вэ?

Collaborator

angarag replied Dec 31, 2011

local deer test hiij bga bolohoor neg gazraas handalt irsen gej uzeed room dotor null hereglegch orj ireed bas suuliinhees neg omnoh hereglegchiig CHATNAAS GARCHIHLAA gesen public msg'iig tugeegeed bsan. Tegeheer n disconnect deer ter hereglegchiig LOGOUT hiisen uguig ni shalgah ged eniig uusgesen. Yvaandaa hereggui bolj ch magad.

Owner

khaschuluu commented on app.js in 0462db4 Dec 30, 2011

Wow, гайхалтай. Энийг хийе гэж яг бодож байсан юм, баярлалаа :D Socket-ууд үүнээс болж гарсан орсон хүмүүсийн дунд төөрөлдөөд байгаа гэж бодож байлаа.

Owner

khaschuluu replied Dec 30, 2011

Test for issue #15

Collaborator

angarag replied Dec 31, 2011

Authorization bolchihson yum shig hernee. handshake'd ni name huvisagch zarlaad tuhain hereglegchiin neriig onooson bolovch suuliin hereglegchiin ner l deerees ni bichigdeed bh shig bsan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment