update websocket example, using __DIR__ instead of deprecated __FILE__