[TIC-Web] fix the socket handler