[sr-dev] git:pd/websocket: modules/websockets: tidied up a bit of the code