WYHNUS / ExchangeBuddy

Find your exchange buddies!
5 stars 0 forks source link

sort out chatting bug #49

Closed kaiyisg closed 7 years ago

kaiyisg commented 8 years ago

help test the chat socket pls @ZhangHanming

WYHNUS commented 8 years ago

Not sure if it's the front-end or back-end issue. When I post something in the chat, I can see two messages sent by me (which should have been one). Upon refreshing the page, the number of messages is corrected to one though.

kaiyisg commented 8 years ago

@ZhangHanming i tried your method of only emitting 'adduser' the first time i use, and 'switchroom' subsequently whenever i go back to that page.

after 'adduser' (the first time socket is mounted), i am able to send msgs through socket and receive it through the callback

however, after i emit 'switchroom', i am still above to send msgs through socket, but now cannot receive it through the call back. however, it is posted to the server, evident when i make an api call to receive msgs and i see the new msg there

WYHNUS commented 7 years ago

I guess this is addressed already? @kaiyisg @ZhangHanming

kaiyisg commented 7 years ago

@plsgibchance chatting and events still not working on safari? seems to be ok on mine already! if it is not working pls feedback