Add socketListener to precompile