added socket background mode in RTMPClient class