Port 8888 not working (websockets)

I dont see where you are specifying that the websocket should run over port 8888. From your code, it appears that it would be running under port 80. Try :80 instead of :8888