websocket: oo-refactoring of fhem.js