Added JWT authentication on web sockets and chat functionality