first testable version of SocketModule