update websocket for reference error in php5.3