copy changes to websockets examples
fix issue in Error constructor, copy around. comments