Update websocket.functions.php

Eval modifier deprecated in newer php versions