sets up basic manipulation of emit, but web sockets is failing to connect