old script of mine I found, wrote it to test websockets