fixed websocket client ip problem

moved checkUser() trigger to client.php and websocket.php