started changing chat to use global long polling and listen on messages