MOD: websocket.js methods