decoding json
advancing on handleSession
goroutine for monitoring the channel