Part of the reason for our Socket.IO difficulties seems to be that our tests operate on sockets before they’ve completely connected to the server. So we’re going to modify our createSocket() and closeSocket() methods to wait for the server to connect. This requires us to implement a new server method to provide that information.