Fixed post-to-websocket test script to allow websocket re-use