a bit messy but added socket-io for real time support of messaging. Would like to use it for all notifications too.