fixed socket and session closing, started server impl for sending continuous data